2001 Mitsubishi Galant Electrical problem

my 2001 mitsubishi galant just kill on the highway. check the distributor and it is not getting any fire to it. the problem is a eletrical.

A bad crankshaft position sensor will cause an engine to stall and not restart.

Tester

Does it seem like the ignition switch is working otherwise? All the normal dashboard warning lights come on with the key in “on”, but the engine not running?