People with libido problems secondary to depression are often helped by counseling and medications. Libido problems secondary to fatigue can be helped with fatigue fighting medications. Ask your doctor for specific advice. For those unable to have sexual intercourse, other techniques can be explored for sexual satisfaction. For example, manual stimulation and oral stimulation can be pleasurable.
Eroticism is as much mental as physical.
Lastly, for most people, sexual intercourse is an extension of a warm, loving caring relationship. A close relationship is possible without sexual intercourse. Loving and being loved is not dependent on sexual intercourse. When there is a need for adjustment to sexual relationship, open communication with your partner can enhance the process and lead to an improvement in the overall relationship. In summary, both the emotional and the physical aspect of problems with sexual function are important to identify and address.