Ability is what you are capable of doing. 

Motivation determines what you do.

Attitude determines how well you do it.