<p>My Anet A8 suddenly had issues with being unable to heat the bed. After ruling out software issues, I disconnected the connector and found this (sorry for the terrible quality):</p>

<p><a href="https://i.stack.imgur.com/7WYfE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7WYfE.jpg" alt="Faulty connector: left male, right female, indicator on the burnt pin"></a></p>

<p>The left most pin on the male connector (bed) is also charred. How could I best repair this?</p>

New Bed (Connection)
You will at least need a new female connector, but as the connector burnt, you have some underlying problem that made the connector burn in the first place: either the board is sending bad signals to the bed, or the bed is not rated for the board or you
just
had a faulty connector (the most usual culprit). Honestly? Replace the whole connector for a properly rated and intact pair - these pin connectors are not rated for 12 V at all but for 5 V!
If you don't use a beefier connector, solder the wires
directly
to the bed.
Safety first!
Anet isn't known for good firmware implementation of safety, so make twice sure that you
run a firmware that has Thermal Runaway Protection enabled!