There are several things that cause sharp pain in your cervix while pregnant including ligament pain and urinary tract infections. Other causes include ectopic pregnancy, according to the American Pregnancy Association.
Since some causes of cramping or pain in the cervix are more serious than others, women experiencing the symptom should contact their doctor as soon as a possible. Only a doctor can diagnose the cause of the pain properly and treat it accordingly. A woman should also contact her doctor if she experiences bleeding, discharge or abdominal pain during her pregnancy. Pregnant women should never try to self-medicate without talking to their doctor.