Understanding the role failure and success play in persevering and achieving goals is crucial to building resilience.