Car lost all electrical while driving

I had that same thing happen in my Duster. The connector from the steering column came loose. Car would just shut off. Don’t know if it was moving when I operated the clutch? I ended up resetting/replacing some of the pins but till then I’d wiggle it and push it together and the car would start