Pain while having sex

So when I had sex, it was the painful feeling and I don’t know what it meant. My significant other wasn’t wearing a condom and it was the 3 time having sex but it was a while since the other two times! If anyone help I would be grateful !