Sex for the first time

I just had sex for the first time and i couldn’t take it and I was in pain how do I get better at sex in general and what makes it hurt less. I was barley taking the tip

HELP!!