I can understand the distress you are through. At first we need to establish a diagnosis of Erectile problem. Whether it is a temporary problem or a condition. With detailed history it can be decided. Secondly, we will need to explore the c possible causes for it. In you case, medications, existing illness of Schizophrenia and mood problems, or independent problem of sexual dysfunction needs to be explored in details. There are multiple risk factors I can see that can cause this issues. Medications important cause. Primary problem of Schizophrenia and mood disorder, they both can cause sexual issues. Considering on the while, my advice will he to visit a Psychiatrist. A detailed account of current state of your conditions, the kind and duration drugs you are on and most importantly, the manner of you sexual problem needs to be studied. It will take a require a detailed interview session.
Next Steps
Kindly visit a psychiatrist.
Health Tips
Don't worry. It can be cured.