What is the definition of energy?

A. The simplest form of matter that has distinct physical and chemical properties.
B. The downward force exerted by matter in the presence of gravity.
C. The smallest amount of an element that still has characteristics of the element.
D. The ability to do work.