An inductor is coiled wire that stores electric energy in the form of magnetic energy and resists changes in the electric current flowing through it. If current is increasing, the inductor produces a voltage that slows the increase and, if current is decreasing, the magnetic energy in the coil opposes the decrease to keep the current flowing longer. In contrast to capacitors, inductors allow DC to pass easily but resist the flow of AC.
A transformer utilizes an inductor to increase or decrease the voltage in a circuit. AC flowing in a coil wrapped around an iron core magnetizes the core causing it to produce a magnetic field. This magnetic field generates a voltage in a nearby coil of wire and, depending on the number of turns in the wire of the primary (source) and secondary coils and their proximity, voltage is induced in the secondary coil.