What is happening to me

So I had my period at a normal time at the first of the month and went a long fine. But then last night I got cramps so bad that I threw up. (I never get cramps) Now I'm back on my period. What should I do?