Understanding the psychology of goals—from identity to dopamine-driven progress—helps us achieve with purpose.