"Why am I studying this material? To pass the test. Why? To pass the class. Why? To get a good GPA? Why?..." You lost me several Whys back!
As a professional, it was the same way. The worst was when my short stint in Finance, but even working for nonprofits and social-conscious startups, it's tough for me to get motivated when the end goal is too many layers of abstraction away.
(I think that's strange, because when I'm actually dealing with technology, abstraction is one of my strengths.)
This was one of the factors in my decision to start my own company. I want to get rid of the layers of Whys and let them have more weight. Why am I working on this project? To make this client happy, so I can pay the rent this month.
Another approach that has helped me in the last year or so has been phrasing my goals and aspirations in the form, "I want to be the kind of person who ___." Then do ___!