Sex..

Today just now I was “doing the deed” with my boyfriend. Some reason I had to stop and go to the bathroom. Once I did I had a hot flash, sharp pain in abdominal area, and cramps too. It lasted for a while and it really hurt. Idk what’s wrong with me and now I’m concerned... advise / does anyone know what happen?