Energy is the ability, the potential do do work, rather than actually doing work. So an electromagnmetic field, for example, contains energy, but it might just sit there without doing any work.
Work is defined as a force times a distance. So in general energy has the ability to exert such a force, but unless something is moved it does not fit the definition. You can push, for example, as hard as you like against a wall but unless it moves the definition says no work has been done. But as noted above, you HAVE expended energy trying to push it.
A closely related concept is power...work expended per unit time...So if you perform some movement,some work, like accelerating a car, the faster you do it the more POWER is expended. These definitions take some time to get used to, sort of like the distinction between 'affect' and 'effect'...