How do you stay focused when studying?

I'm struggling to find the motivation and focus. Do you guys have any tips?