AC current in the primary coil produces a changing magnetic field around the primary coil.

The iron core channels the changing field through the secondary coil.

The changing magnetic field induces a voltage in the secondary coil.