Hello, I believe the earlier engines had a better power output due to different emission limitations. Here you can check the different versions
https://en.m.wikipedia.org/wiki/BMW_N52
Regarding the differences, they are mainly aesthetics (front grille shape, bumper, rear lights, side mirrors...)