Period, sex, health

Today I’ve been cramping n spotting but I had my period January 22nd and it ended January 27th and I had unprotected sex 2 days go do anybody know what’s wrong?