When you pulled the plug out of the EGR you may have tugged a wire and pulled it out of the connector. Check all of the pins in the connector and make sure you didn't damage the connector pulling it out of the valve. All of the pins should be at the same depth in the connector.