Work is the energy required to move an object against an opposing force. Work is usually expressed as a force times a displacement. Dropping a stone from a window involves no work, because there is no force opposing the motion (unless you consider air friction...). Pushing against a stone wall involves no work, unless the stone wall actually moves.