how do i treat pain during intercourse?

I’ve had sex several times by now, but intercourse is still painful… how do I solve that?

check the lubrication, if it is not enough then use KY jelly. If intercourse is still painful then consult doctor because there are chances of some infection.