The Enigma was an electro-mechanical cipher machine used by the German Military during WW II. The following link shows Enigma Simulation done in Adobe Flash 8 by Dr. Frank Spiess. You will have chance to see how it worked. Highlighted wires show steps of encryption.
This Enigma simulation is part of Cryptool.com, a great collection of cryptographic tools and demos.