Labor related or upset stomach?

I’m 39 weeks pregnant and was riding in the car. My stomach started to feel crampy and then it started hurting really bad probably for 15-20 minutes. It was making my back hurt and my legs a little numb. My stomach never felt like it was tightening. It kind of felt like a really bad gas bubble. I haven’t experienced any contractions yet but since my stomach wasn’t tightening I didn’t think it was a contraction. After it hurting for those 15-20 minutes I started feeling sick and ended up throwing up something I had drank maybe 30-45 minutes before and the pain went away. Could this be a labor thing or was my stomach just upset from what I drank (chocolate milk) my stomach has never hurt like that. I usually just throw up.