Painful intercourse is also known as "dyspareunia." This underlying problems during, after or even just before sexual intercourse is not restricted to certain diseases and infection as is seen with stds, urinary tract infection etc There are other possible causes of pain during sex. It could be that you are not relaxed as you ought to be due to fear or perhaps trauma. This affects your psychology hence You may experience difficulty during penetration. Sometimes, spasm occur in your vaginal walls. This makes penetration painful.
Other times, it could be as a result of insufficient lubrication in the vagina. In this case, you should consider some form of lubricants. Rough sex has also been reported to be one of the Causes of painful sex. If you are free from infections, you must try to learn how your body works, stay relaxed and be mentally prepared whenever you want to have sex with your husband. If not, see a doctor.