stomach pains???

was having slight cramping and woke up at about 3am with a sharp pain in the left side of my belly, it hurt so bad it woke me up and i almost cried. I can feel him moving and everything seems fine now i just want to know if anyone knew why that would happen? i’m 27 weeks and 3 says