Lost all electrical, then it came back. What's going on here?

The easiest way to diagnose something like this is to start wiggling wires. I have found issues like this numerous times this way from bad bulkhead connectors to MAF sensors and ECM's on computer control cars.