If it is depression there are medications that start to get you on the right track.
But also talk-therapy may be suitable to help. (I have both talk-therapy and an antidepressant. I’m not suggesting prescriptions aren’t sometimes necessary, but it shouldn’t be assumed.)