2000 Chevy 2500 Silverado 6.0

2000 Chevy 2500
I have replaced the maf sensor and the plug with it, plugged in it will not accelerate. When I unplug it the truck runs fine. What could be the problem?