My hair now and my hair before.

My hair is thinning so much, and I have so much dandruff too. In the first photo, I literally just washed my hair that night. I am so sad and depressed due to my hair. My hair used to be so straight and nice. I blame the medications that I’m taking, but what can I do to fix my hair?"