How do you operate a train without an external electricity supply?

The great majority of trains operate using an electricity supply that is external to the vehicle.
When the rail network is not electrified, the train must use its own energy for propulsion. Several solutions are possible:

How do you operate a train without an external electricity supply?