weird cramping

so i’ve been seeing this guy and we had sex and i’m on the pill and he came inside but before that i was getting weird cramps and now my lower back hurts like where my kidneys are? my stomach has also been upset lately especially today. does anyone know what’s going on.