Although motive power for a train-set can be incorporated into a car that also has passenger, baggage, or freight accommodations, it most often is provided by a separate unit, the locomotive, which includes the machinery to generate (or, in the case of an electric locomotive, to convert) power and transmit it to the
If you were to leave out a step or go in the wrong order, it might be confusing for readers. So it is important for you you to go in the correct order for it to be a good piece of writing.