Contracting cervix??

My doctor said today my cervix is contracting? Ive never heard of that before. Vagina does hurt tho about every 3-5 mins theres a strong pain. Not sure what to do! Help!!