Doing work is when you out a force on an object. The direction of force is where your pushing or pulling when the direction of motion is where the object is being moved. And work is depending on if there is any force and motion because there won't be any work done if there is no force or motion going the same way.