Turing did not work on the Enigma, it was a German machine.
However he did do some work on the British Bombe machines that
were used to crack the Enigma machine cipher.
Later he saw Tommy Flowers' Colossus electronic computer,
designed to crack the German Lorenz SZ40/42 machine cipher. This
inspired him after the end of the war to begin work on programmable
electronic computers.