Help!

Im 31 +5 weeks and have been having menstrual like cramping pains and lower back pains, I woke up with a tummy ache as well and last night I believe I lost a big chunk of my mucus plug, anyone have any idea?