No magnetic field, with the possible exception of an electromagnetic pulse from a nuclear blast, would disable a car. Neither trains nor train tracks emit a significant magnetic field. A magnetic field drops off extremely rapidly, based on the square of the distance from the source.