Energy is the ability to do work.
Some types of energy are potential energy, kinetic energy, nuclear energy, thermal energy, and there are many more.
What's common in all of those energies I have listed above is that energy no matter what kind you mention all have the ability to do work but some do it in different ways.