I used to hate having to learn stuff, so I did really badly at school.
As I got older and started learning at night school at my own expense, I worked out that, if I tried to really understand everything as I went along, it all made sense and I didn't actually have to learn it. If you understand how ideas and techniques hang together, you can bring them to mind no matter which direction you approach them from. It is still hard work but the payback in terms of grades and exam results is well worth it. I went from a borderline failure to the highest level of success ... and it is not because I am a naturally clever person but just because I took the trouble to understand it.
As a result, I went from dead-end, low paid jobs and worked my way up to much more senior, MUCH better paid positions. It took me many years of seriously hard work and studying, most of which would have been unnecessary if I'd studied properly at school.
The motivation, my friend, is that a good education can set you up for life. An unsuccessful education can condemn you to being at the bottom of the economic heap for life, low paid, struggling and unsatisfied with life.
Studying is more fun if you understand everything. Even if you still don't really like studying, everyone likes being a winner so that is reason enough to study.
I wish you success.