in pain when lying down

Can't get into a position where my back, hips, and abdomen don't hurt. My back is always a constant dull pain, and then my abdomen has sharp pains that come and go. I'm 39 weeks, could my body be getting ready or is it just being annoying?