In case of inductor, energy is stored in the:

Electric field

Potential field

Gravitational field

Magnetic field