Still I would have a look at the egr and tubing to and from it, may be still clogged up.
May be the previous owner did delete the egr, try to find out what needs to be done to delete the egr, it may give you a hint what should be connected to that particular plug. Sort of reverse engineering...