Energy is most simply defined as the ability to do work.
Moving objects have energy. It's called kinetic energy. Kinetic energy, KE, is the energy of motion. So, any object in motion has kinetic energy.
The amount of kinetic energy an object has depends on the mass and the speed of the object.