Help what could this be?!

As
Woke up with a really sharp pain in my pelvic area. It's lasted for 30 seconds or so and then disspaeared. It hurt so bad I couldn't move until it was over. I'm 31 weeks. What could it be?