Intrinsic motivation has been found to correlate strongly with educational achievement. Clearly, students who enjoy language learning and take pride in their progress will do better than those who don't.
Extrinsic motivation is also a significant factor. ESL students, for example, who need to learn English in order to take a place at an American university or to communicate with a new English boy/girlfriend are likely to make greater efforts and thus greater progress.