Lower stomach pain

Cierra
I'm 23+1 weeks pregnant and last night and tonight I have sharp pain that's last about 5 minutes then stops until I stand up again I still feel the baby move but what could be causing this pain?