Ability means your capacity to do something, whether you can do something.
Capability means being capable, that is being efficient and able, being good at what you do. This means being capable is better than being simply able.
However, they are quite simular: being capable of a task and being able to do a task are almost synonyms.
- For Teachers