Almost 37 weeks and sick

Out of nowhere in the middle of the night I started feeling really sick and crampy and I had to go to the bathroom 4 times and couldn't sleep because i am so uncomfortable. I just don't know what's going on. This is my first pregnancy and I'm trying not to freak out about everything but I feel terrible and the cramps and pressure were terrible. I'm feeling a little better now but still sick and my baby isn't moving a whole lot. Anybody had this happen to them at 37 weeks? What is your advice?