25 weeks and cramps.

Hi everyone I'm 25 weeks and 5 days pregnant and been having stomach pain the last few hours and now I'm having lower cramps in both sides that last a few seconds and come back every couple of minutes. A few hour hours when I went to the bathroom I had a bunch of white discharge. Is this normal or should I call my doctor. I'm a first time mom and I do not know what to do.