the knock sensor is just that, the wires clip onto it, so you need a new harness to the knock sensor.
if you can get the car in the air, look up between the oil and trans pan you can see the sensor in the side of the engine block. that way you can see if you have a plug on there now or not. maybe you can re solder the 2 ends together.