Something is wrong

I got my period on the 25th last most month, and they finished a few days ago but then for some unknown reason I got them back again the other day but not as bad like really light period but today it's only been brown stuff, though I have been getting bad cramps for the past three days and it's killing me, I did have sex with my boyfriend before I got my period aswell! I don't know what is going on, I think I have something wrong with me or I could be pregnant !! Can someone please help me ??