Many medicines and recreational drugs can affect a man's sexual arousal and sexual performance. What causes erection problems in one man may not affect another man.
Talk to your health care provider if you think that a drug is having a negative effect on your sexual performance. Never stop taking any medicine without first talking to your provider. Some medicines may lead to life-threatening reactions if you do not take care when stopping or changing them.