Came here to say check the EFI fuse!
I drove into my driveway and when I came to a stop the truck shut off in gear. Strange I tried to start and had same symptoms, no click, no crank, like the starter wasn’t getting power. I cleaned the battery terminals and still nothing, found this thread...