Capacity is the potential to use an ability within a specific context, such as a specific interval of time.
The context in which capacity is present is stricter and smaller in scope than the context in which ability is present. For example, John may be able to drive from his house to the store, but may lack the capacity to do that on Wednesday.