How did the Enigma machine work electrically?
Pressing a key sent an electrical current through a plugboard, through three or four rotating wired rotors, into a fixed reflector, and back through the rotors via a different path to illuminate an output lamp.