It has three pins: Base, Collector, and Emitter. In an NPN transistor, when no current is flowing to the base, there will be an (ideally) infinite resistance between the collector and emitter. ... TL;DR: Transformers change voltage and current but not power, and transistors act as a gate (sometimes for high currents).