When a force is applied to an object which causes displacement along the direction of force then the work is said to be done by that force.
The work done by a force is defined as "the product of the component of the applied force on the block in the direction of the displacement and the magnitude of this displacement" is called work done.