Transistor
Transistors have three terminals: the gate, the drain, and the source  (on a bipolar transistor, the wires can be called the emitter, the collector, and the base). When the source (or emitter) is connected to the negative terminal of the battery, and the drain (or collector) to the positive terminal, no electricity will flow in the circuit (if you have only a lamp in series with the transistor). But when power flows through the gate (or base), the transistor will allow electricity through. This is because when the gate is positively charged, the positive electrons will push other positive electrons in the transistor letting the negative electrons flow through. The transistor can also work when the gate is just positively charged, so it doesn't need to be touching the drain.