But if you do have depression
and anxiety and not just thoughts of life being confusing
and difficult, which it actually is, then it might be time to see a therapist to talk it out. As for sexuality, that will take care of itself, but when you say a relationship was "perfect," well, was it really perfect? Or just good? Perfect doesn't really exist. Peace.