Did the electronics (radio, lights, instrument cluster) also shut down during the incident?
You mentioned the car started braking. Was it like normal engine braking, or more abrupt like emergency braking?
I'm wondering if maybe a battery terminal or something was loose, and the emergency...