Vaginitis can cause a frothy, greenish-yellow discharge. Often this discharge will have a foul smell as well as itching and soreness of the vagina and vulva, as well as burning during urination.
But menstrual cramps your uterus contracts to help expel its lining. Often causes pain and inflammation trigger the uterine muscle contractions.