Cramps/hip pain

For the last couple days I have been having back cramps similar to my period. This morning it wrapped all the way around and my hips are hurting as well. I’m only 32 weeks and haven’t been drinking a lot of water lately, so I know that is probably part of the problem (which I am trying to fix now). But I can’t seem to get comfortable, even with a heating pad and changing positions. Any suggestions?