Pelvic pain and discharge

I had sex a week before my period came , after my period ended I’ve still been cramping and I notice some yellow discharge what could this be l? I feel pain in my pelvic all day and night