I have a 2002 Accord 2.3 automatic trans. With 285K miles.While driving at around 40 mph the engine just shut off. I put it on neutral and try to start it and just the guages lit up but no cranking. I parked and tried again and no cranking on the starter. I changed the main relay just in case but nothing happened. Solenoid works but starter doesn’t do anything. Starting relay works.What could it be?

Watch Scotty's video "Cool trick to start a dead car" and try that. If that doesn't work try "Fixing a Honda that died on the road"