I think I'd like to turn this question around for a moment:
What would being the best programmer in the world give you that you don't already have?
Really, think about how would you answer that question and how do you know that there aren't thousands or more programmers that have a similar status, whether that be fame, wealth, power, or something else in this world.
At the same time, how would you measure that best? This is focusing more on how would you determine who is best. Personal wealth is much easier to calculate than something that may be harder to quantify.
Is Jon Skeet the best programmer in the world? Maybe, but I suspect even he makes mistakes and learns new things from time to time. Maybe somebody should ask that question somewhere.
As for what motivates me to be a better developer, this is rather easy to answer:
Pride in my work - I have no issues saying what kind of work I do and standing behind it. Yes, it isn't perfect but then neither am I.
Helping people - When I create something that makes it so someone can do in a few hours what used to take weeks, how can you not think, "That's cool, dude."
Learning the tips and tricks of the trade - Having a store of various algorithm generating ideas and seeing how the world is put together motivates me to help build a better world. Solving problems can be rather neat.
Continuous improvement - This kind of ties in with the first point but the idea here is that I'm a work in progress and improving year by year so that while I may get older and have some physical changes, there are also mental changes that may make up for that.
If you want a blog that may help with motivation, take a look at Sources of Insight, which is written by a Principal Program Manager on the Microsoft patterns & practices team.
EDIT v1.1: In answer to comments, here are my suggestions on where to go from here:
If possible, ask those that can seem to do a lot initially how they are doing it. Are they relying on experience, guessing, or something else to get that idea? Do they really know all those details in advance or are they just doing what is needed as it is needed?
Design patterns will help from the perspective of making your box of tools bigger. "Refactoring" by Martin Fowler and "Heads First Design Patterns" by Elisabeth Freeman are good ideas for where to start on some of this. I see refactoring as a mini-design patterns in some ways is why I group them together.
Try to formulate the steps of what do you need to do at each step to be able to do what others do. This isn't likely to be easy or really fun initially, but I'd think effectiveness is why this would be good. The idea here is to possibly take a simple request and start mapping out possible answers and then check with those that could give feedback which ways seem better than others and refine this skill which is really what this ability is. Some people may have it initially more developed than others, and some may spend years working on it to get where they are.
I can understand how easy it is to get demotivated when one looks at the mountain of possible stuff out there to learn and how other people seem to handle things with ease, but do you know their story? Life lessons may help, especially if you remember things like "Do YOUR Best" and "Version Your Perfection" as ways to combat perfectionistic thinking.
EDIT v1.5:
"Do you have a cheerleader?" If not, I highly suggest finding one in your life so you have someone that can positively motivate you to do well, help move on after failures and really celebrate those victories in life. Have you ever had that experience were something awesome happened and you just get really excited and grin when telling others about this experience? I know I have and that is when having those others, whether they be developers or not, can make all the difference in the world in terms of getting back on the horse again and again, with nearly infinite recursion. I recognize that that is a bad joke, sometimes a little humor is a good thing.
The edit numbers are random and just a fun way to track what I change in the answer as this may get longer as more details are requested as like I noted above, I do like to help people, whether that be by sharing knowledge, experiences, thoughts or just listening to what happened to someone else.