Abdominal pain after sex

So I just had sex with a new partner for the first time and afterwards I felt a little abdominal pain. Kinda like I was constipated but also like I had to💩. And when he was trying to go all the way in or at certain angles it hurt like a BI**H Anyone know why? This happened with my ex once before too and I almost cried.