Normally, the rail functions as a return for the electricity. If the wheels from the locomotive came off the rail you would see arching.
This isn’t light rail, the power comes solely from the overhead catenary lines.