The electric train can save energy (as compared to diesel) by regenerative braking and by not needing to consume energy by idling as diesel locomotives do when stopped or coasting.
Which type of train continues to use energy while coasting or being stopped?
diesel