Am I having contractions?

I

I am 36 weeks and 6 days. 37 weeks in a few hours. Lol. Last night I woke up with bad stomach pain and was too sleepy to think much of it but eventually went back to sleep. Then this morning at work I was having bad stomach pain again. The pain was really bad and in my entire stomach and back. A lot of the pain was a burning running from my ribs to my belly button and then just wrapping around my sides and into my lower back. The pain would last for about 60 seconds and then go away and baby would move. I eventually had diarrhea. Now I’m having the same pains again and am feeling very nauseated. Am I having contractions or just other stomach pains?