After a fire.....

No, actually the tailgate switch and wire are OK, just seems like water got in it, and it no longer turns and springs back.
Electriaclly, it functions. Looks like the fire began at the bulkhead disconnect. Anyone else suggest if the ammeter could lead to the bulkhead burning up?