Both words refer to the skill and human power to do something; however, "ability" is something acquired, and "capacity" is something inborn.

e.g.: His ability as a negotiator was helped by his capacity for remembering faces.

Clark & Pointon (2003), Adapted