Sounds like a ground came loose.

If the starter just clicks there usually is a grounding problem, the car could shut off for the same reason as it wouldnt charge the battery.

I'd start there.