first time

okay so i’m 16 and as of today was my first time having sex and it hurt really bad it felt like we did it for atleast 45 mins and the whole time it hurt and i felt like i had to pee what was that feeling ? he didn’t cum i had to tell him to stop after a while of it happening because it hurt.