Stomach cramps and back pain

I’m 30 weeks .. and I keep cramping, and I felt a sharp cervix pain, now I keep pooping and my back hurts... not too sure what’s going on... anyone know what this is?