How far along are you? Try a warm bath and relaxing music. Also try a hot tea. When mine is really bad my doc prescribed me 1/2 a unisom. But I don't take that often not a fan of meds.
Having the same problen only im 38 weeks. My hips are killing me. My docter said I could take binnadrill to help me sleep. And try the pillows. If I drink anything with caffeine. The baby will move all night and keep me awake
Try different types of pillows ie firm, soft, long pillows, etc or you can get a preggo body pillow. Also you might find a recliner or glider more comfortable to sleep in or on your couch. You can also try sleeping in bed slightly elevated.
why don't you try a bunch of pillows. And maybe sleep in an almost sitting position, that sometimes helps me