If you've got sexual performance anxiety, see a doctor -- someone you're comfortable enough with to discuss your sex life. The doctor will examine you and do some tests to make sure a health condition or medication isn't the cause of your problems.
During the exam, your doctor will ask about your sexual history to find out how long you've had sexual performance anxiety and what kinds of thoughts are interfering with your sex life.