Help?!!

cramps started a few days after I ended my period and I’ve had them for close to a week now, had sex the day after my period but used protection and I’m on the pill. What could the pains be?