"How do you stay motivated?"

A lot of people struggle with motivation. They have a deep desire to do more. To be better. But they lack the motivation to do so. As a result, they end up living a life where they know that they have "potential" but chose to never pursue it. It leads to a mediocre life, at best. So how does one gain motivation and not become mediocre?