Locomotives. A locomotive is a specialized type of train car which is used to run the whole train. The locomotive is self-propelled, generating energy through the burning of fuel, the use of electricity, magnetic levitation, or other methods. Locomotives can be used to either push or pull train cars.