when to say that work is done?

Work = F * d

So when an object is moved a certain
distance by a force acting in the direction of the motion, work is done on the object.