Some medications such as Carbamazepine can cause sexual dysfunctions. If you develop it, you should consult your doctor on how to cope with it - ask for a changed therapy, or lowering of the dosages.