Sounds like the immobilizer module ur describing. To make mine work bypass the immobilizer. i had to cut away the security shield around this module and the immobilizer solenoid ( this may have been done already if ur module is just hanging there) So cut the 3 wires as close to the module as possible and you should be left with 2 wires going to a stop solenoid on the pump. Take the two wires and earth one and connect a 12V ignition live to the other. There are two other wires on my pump, one red and one black, i earthed the black and put the same 12V ignition live to the red. Hopefully it should start on key now.
Where where u trying 2 connect the egr valve to btw?