“I can’t focus at school”

I used to have straight A’s and B’s, but right when i started high school, I lost all motivation to do my homework and classwork. Now I have an overall grade of F’s in two of my classes and C’s in some other classes. I feel stressed out seeing my grades like this, but when I try to do my work I cant focus. 😦 I dont know what to do.