Contractions or no?

I’m 36 weeks and was just waken up out of my sleep by a strong stomach and back pain that lasted for at least 10 Min straight. I figure If they were contractions the pain would come and go but this was a constant pain and my stomach was hard