Hi
Its probably the Throttle position sensor plug
pin 3 goes to earth
pin 1 and 2 go back to ECU
Depending on what cable/connection is broken is wont read throttle closed, open or a resistance value on position of butterfly valve.
3 pin plugs with pins can be bought easily, but if your local I may have a plug and the pin removal tools