A circuit carrying a current generates a magnetic field and hence a flux through itself. If the current varies, the flux varies and an opposing EMF arises: this is self-induction. Inductance measures this reaction; the solenoid is its canonical example, and it stores energy in the magnetic field.