How do I know if im depressed or have anxiety?

Aiya

I really don’t want to self diagnose but y’all, it’s getting bad. I have no motivation, my school work isn’t the same, grades are slipping bad, I’m not eating, I won’t sleep, my thoughts keep getting worse and worse, not in a self harm way but I literally have to convince myself that I deserve to eat and that people care about me. I have went through so much when I was younger and now that everything’s changing it’s all coming back to me so all I have been doing after work is crying. I’m over it. I just want to know if someone who is diagnosed knows what I’m talking about. Like is this a sign? Should I be getting help?