Electric trains have some rather interesting engineering behind their functioning. This is how electric trains work.