Imagine that a group of molecules has ten units of energy. If the energy in those molecules is perfectly organized, then the molecules can do ten units of work. However, if the energy became less organized (so, the entropy increased), the molecules might only be able to do six units of work, even though they still have ten units of energy in them.