Training can only take you so far. Nutrition can only provide a given amount of energy. Preparation can only address known cirumstances.
After that, it takes heart. Near the end of a race, when all else has been exhausted, sometimes heart alone can get you to the finish line. Not always, but sometimes. Belief in yourself that you can make it.
Do you believe?