Before you order a new cable to replace please check which version you need.
Depending on the printer you have you will need a particular version of the cable. There are two versions of the extruder head ribbon cable: 16 pin or 14 pin. You can check by looking at the number of pins on the extruder board or the pin holes on the ribbon cable itself.
To be even more certain, you can also have a look at the version of the motherboard as well. If it is V20 or V24 (as indicated by the prefix V20XXXX or V24XXXX on the sticker) then it is the 16 pin; if it is V7 or V12 then it is the 14 pin.
Please see the attached PDF for the required steps to replace the cable.