funny question,have you reattached the vacuum pipe to EGR?is it plugged in?
is the vacuum pipe working? is there vacuum?
have you tried resetting the ECU? id try that 1st. sometimes the car has to be reset to clear codes 100%. so clear the fault code,then take both leads off the battery & leave them joined together for half an hour,then start her up & see if it still returning a code. if it is,then i would be looking at the EGR solenoid next. If no luck there,it could be a wiring issue or ground fault somewhere.and if its is,how good are you with electronics etc? I have some figures here that you're supposed to have ie EGR solenoid etc(voltages/ohms),but if you dont know a lot about elecs,I wouldnt go there.