If electrical power is interrupted even for an instant, the engine will shut down. And it's possible that there is enough electricity flow through the weak connection to run the core electrical system but not the starter. Clean, remove and reseat the ground on the front end of the passenger side...