The Enigma code was broken by exploiting the weaknesses in the HUMAN operators. MUCH time and effort was spent figuring out what bad habits the Enigma operators might develop, what shortcuts they might take, where they might get sloppy and careless.
The BIGGEST fault in the Enigma was NOT the reflecting cylinder, which cut the search space in half because whatever key you pressed COULD NOT be the encoded error. Even with this "fault," there are roughly 10e214 (ten to the 214 power) permutations you'd have to sort through.
The hole through which Enigma could be unlocked was a procedural one. You set your machine to a pre-agreed three-character daily code also known on the receiving end. Then, you picked three different letters, supposedly at random, that would be used to encode the ACTUAL message. You typed those new letters TWICE through the Enigma using the daily code, writing the results down. THEN you set your machine to the second, random three digits, and encoded your message.
At the receiving end, you got your encyphered message. You typed it back through your machine set to the daily code. You knew the first six characters should be two identical groups of three letters that were the settings for the following message. They repeated the three-letter key so you could be sure on the receiving end nothing got garbled, or if it did, then you could try decoding the message using the first group, and if that didn't work, try the second one. The odds of BOTH three-letter groups getting garbled were relatively small.
This left wonderful exploits for the codebreakers to use. You didn't have to look at the whole message -- you just concentrated on the first six letters. Any solution that gave you two identical three-letter groups was the correct day code. And once you had the day code, then anything else sent that day could be read as well.
Couldn't get the day code for some reason? Then work on the three-letter message code. Cypher clerks get careless. It's a repetitive task. Need three letters? Well, just strike three adjacent keys, either across, diagonal, or vertical.
This is somewhat simplified, but that's how Enigma was broken, by exploiting the human side. The Germans introduced complications through the plugboard, an extra non-rotating thin cylinder in the naval Enigmas, and by changing the shared "daily" keys hourly toward the end of the war. In each case, the codebreakers were down until somebody tweened out what changes had been made and came up with a procedure to work through them.
The Enigma USED CORRECTLY is cryptographically secure. It's still vulnerable to Rubber Hose Cryptography, where you take a rubber hose and beat the person on the receiving end until they give up the solution.
Beanbag