To hurt or not to hurt? 🤨

When me and my bf had sex last night when I was on top everything was okay, but when he tried to be on top and do it, it hurt me? And when we switched again me on top, it didnt hurt?

I'm confused? Was he too rough or the angle was bad or??