On model railways, electricity comes from the household supply and is connected to the rails by wires with clips that attach to the underside of the track or are soldered on. ... Wires attached to contacts resting on the wheels then carry the electricity to a motor inside the train giving it the power to operate.