What is the solution for pain during sex?

I am unable to perform sex. Please help.