Didnt know if you had this taken care of yet but the not shifting is either low trans fluid or a shift solenoid is bad.
Sounds like you'll need to hit a trans shop to find out for sure what's wrong.
Also when you replaced the Egr, did you clean out the pipe ???
If you didnt it will probley give you more troubles.