I am 31 weeks pregnant with thick odorless white discharge and have sharp vaginal pains. Is this normal?

Discharge-Y, pain-N. Discharge is very normal. If symptoms like itching or burning accompany the discharge it is not normal. Pain, while common in pregnancy, should be evaluated to verify there is not something concerning going on. It is common to have vaginal pressure and occasionally sharp pains most of which prove to be ligament strains for example.