how to connect the VTEC from a b16 motor to JDM ECU??

I just came up on a Gen 2 Inegra Rs with a b16 motor. the chk engine light comes on and it shouws it is the knock sensor… however i then tried to connect the knock sensor to the ecu but nuthing happened.? then i put the 2 wires i touched back and now the car won’t start…well it does but it idles at close to 2000 rpms, then cut off… the ECU now read normal… ?? what could be wrong???