I've heard people debate this and have never heard a distinction that makes much sense to me. You'll see "ability" as part of the definition of "capability."
Some say that "ability" refers to a physical or mental skill. She has the ability to recall with 100% accuracy a conversation that took place a week ago. He has the ability to lift 1000 pounds.