Work done is defined as the multiplication of the magnitude of displacement and the component of the force that is in the direction of displacement.
Mathematically: Work done , Where Force, = displacement,
Energy:
When work is done, energy is transferred from the agent to the object, which results in a change in the object's motion (more specifically, a change in the object's kinetic energy).
When a force causes a body to move, work is done on the object by force.
Work is the measure of the energy transfer when a force moves an object through a distance.
So we say that energy is transferred from one energy store to another when work is done, and therefore, the energy transferred = work done.
For example, a fan converts electrical energy into mechanical energy. In the heater, electrical energy is converted into heat energy, etc.