baby isn't moving

This morning when I woke up I found myself laying half way on my stomach. So I immediately turned over onto my side but i noticed that my stomach was a little painful to the touch. I'm currently 24w 2d & I have yet to feel my baby move. Should I go to the ER or should I just be patient to see if my baby is going to move today? I'm so scared to lose my baby that I'm driving myself insane ☹️