When a current flows within a conductor, whether it be straight or in the form of a coil, a magnetic field builds up around it and this affects the way in which the current builds up after the circuit is made.
As the circuit is made the current starts to flow. Then as the current increases to its steady value, the magnetic field it produces builds up to its final shape. As this occurs, the magnetic field is changing, so this induces a voltage back into the coil itself, as would be expected according to Lenz's Law.
When the current is switched off this means that effectively the resistance of the circuit rises suddenly to infinity. This means that the ratio L / R becomes very small and the magnetic field falls very rapidly. This represents a large change in magnetic field and accordingly the inductance tries to keep the current flowing and a back EMF is set up to oppose this arising from the energy stored in the magnetic field. The voltages mean that sparks can appear across the switch contact, especially just as the contact is broken. This leads to pitted contacts and wear on any mechanical switches. In electronic circuits this back EMF can destroy semiconductor devices and therefore ways of reducing this back EMF are often employed.