2 ways that it happened. You forgot a wire like it was mentioned. Or corrosion.

This will be about the easiest fix you will have on a boat.