Painful sex is a common problem, and many things can cause it. Pain during sexual entry into the vagina can be caused by too little lubrication, an injury, an infection or other problems. Pain from deep thrusting could be due to certain illnesses or past surgeries. Mental health problems, stress and past sexual abuse also can play roles.