Stomach cramp

Can someone help please don’t know what I just experienced but took a really bad pain in my lower stomach that wrapped around to my back and I felt like I couldn’t move it was so painful I’m 28 weeks and has me feeling a bit worried don’t know if babies position could have caused it or not?