Ugh why do I feel like this?

I have been in and out of my sleep since 3 AM with menstrual like cramps, and nausea, and I just feel exhausted. Any ideas? 36 weeks pregnant