It sounds to me like the 2 power wires connect to the same place and the connection has corroded and occasionally connects after a bump then loses connection later.