late miscarriage?

I've been having left pelvic pain, it's like a burning sensation. My uterus has been contrasting and now I have really bad runny stool. My baby has been moving. I don't know what to do.