Perhaps it will be helpful to know that you are not alone. Difficulty sleeping in the third trimester is not unusual. It sounds like you have some pain that may be also contributing. You may want to talk to your obstetrician about that. This site is specifically focused on pregnancy. Here is an excerpt. There is also a lengthy list of things to do to help with the condition: “What it is: The inability to fall or stay sleep, especially in the third trimester. What causes insomnia: A complicated combination of hormones and a number of unhelpful conditions, such as frequent urination, persistent heartburn, leg cramps, and pre-birth anxiety. ” Good luck.