Should I go to the hospital??

So this is my 2nd baby, I’m 37w1d, and as I was sleeping I woke up in severe pain in my back and stomach felt like bad gas maybe so I’ve sat up I’m still getting pain in stomach and back and I also think I just lost my music plug I thought my water has broke but it wasn’t a lot of water just soo much mucusa And watery. What should I do??