Was this a contraction? FTM, so I'm new to these things.

My stomach started killing me and it felt like a bad gas pain. I got up and walked around and it was still there, for about 30 seconds. And I felt like I needed to poop really bad and got really nauseous. My stomach wasn't tight though. And my son has had decreased movements last night and today. Thanks for your help! (: