Why does an unpluged egr valve run better then

The EGR system meters a little exhaust gas into the intake which lowers the combustion temperature which lessens the amount of NOx in the exhaust. The engine will run better without it but will produce more smog. Over a long period of time the higher combustion temperature can cause valve damage.