Sex troubles with new boyfriend

So, I’ve started seeing one of my friends. We decided to make it official a couple of weeks ago. And today we had sex.

Uh

He’s a virgin, and I’m not (at least, before this.). The problem was, we tried for 2 hours and neither of us finished. It didn’t feel very good for me or him. And he could barely get it in at all. We tried with and without a condom. But I’m now home and in a bit of pain around my vagina.

I don’t know what to do. He’s not exactly big, but isn’t tiny.

Any tips?