In a circuit diagram, an inductor is shown like this:
To understand how an inductor can work in a circuit, this figure is helpful:
What you see here is a battery, a light bulb, a coil of wire around a piece of iron (yellow) and a switch. The coil of wire is an inductor. If you have read How Electromagnets Work, you might recognize that the inductor is an electromagnet.