loss of power while driving

Let's start with "what year make and model" and does it have factory wiring?

Probably a bulkhead connector issue, or maybe fuse link, or even just a bad battery connection or cable.

What did you do to get it running again?

Did you have ANY power IE headlights, accessories, etc?