Pain in upper thighs and back with slight cramping

38 weeks with these pains that are worse when walking and tolerable when laying down..what could it be?