Sex hurts

I've had sex around 10 times now and it hasn't felt good at all I'm so confused because everyone says how good it is but it either hurts or it just doesn't feel nice what is it?