Is the truck an IDI or a PSD?
Can you describe the issue in further detail? What was the truck doing right before it started shuddering and not shifting right? Did the O/D light come on and start flashing? Is it doing it all the time or only on hard pulls? When it shifts, does it "buck" really hard?
Right off the bat, I would check the harness plugs at the transmission and make sure they are tight and clean. Then I would check the FIPL(TPS) and make sure that is connected and operating within the correct voltage range. I would also suggest checking the VSS mounted on the rear axle and finally, check to make sure the dome light in the cabin works.