People thrive and stay intrinsically motivated when three basic psychological needs are met: autonomy, competence and relatedness.