Honestly you need to know yourself more, understand why you want to excel in school (purpose, ultimate goal etc.) Personally procrastinating has always been an issue and even more when the work gets difficult, but that mindset of not feeling capable of changing, was what left me unsatisfied almost all the time with myself for being unmotivated, when I saw kids doing extremely well. It takes time and effort is all one must know, with just that you understand every minute of your life down to every second counts to who you will be tomorrow, I thank my mindset for the student I am. One thing to also know is to not compare yourself to others becasue that can led to far more stress than needed, focus on you and who you want to be. Asking for advice today will be one of the things your future self will thank you for!
Some of the things I do to not procrastinate (well try not to) is set timers, even as little as 10 minutes to 5 minutes of doing work consistently and then at the end of the time reward yourself (be generous) and do the process again. Think of it as a game the longer you work for, the better the reward and in the end you will feel proud of what you've been able to do for yourself.
Another thing is to go into deep thought about your actions, you have to, over time, strengthen your will power to get yourself going even when it gets stressful and boring etc., always think about the end result and what you want, because in the end it always comes down to student.
Explanation:
"Your attitude, not your aptitude, will determine your altitude"- Zig Ziglar