Sometimes it's an illness that causes sexual problems but most of the time it is the medication you are taking that is causing the problem. Some medications that can cause a myriad of different sexual problems are:
*High blood pressure medications
*Birth control pills
Talk to your Dr. if you notice adverse sexual effects. The solution could be as simple as changing your medication and/or dosage.