This article lists medicines which can cause sexual problems. The list is not complete. Codeine is known to sometimes cause sexual problems. Your illness in itself can also be a cause of your sexual problems. When threatened by illness, the body concentrates its resources on essential functions, and sex is not regarded as essential.