Help please!!

I'm 39 weeks pregnant, I've had diarrhea all day literally pooping water. I'm so sick to my stomach & fighting throwing up.. I've had on & off contractions. My body is weak, and I can't even drink water without it trying to come back up. What is this?? I'm absolutely miserable!