An inductor works by storing electrical energy in the form of magnetic energy. This happens when an electrical current passing through the bobbin inductor creates a magnetic field around it.