Answer to "dose motor have to be pulled out to install cam bearing"5.7 & 5.3 no, but i recommend it highly. You could remove the front grill/radiator mount and possibly the bumper depending on clearance. BUT that means, radiator, oil/transmission cooler (if you have those), grill, lights, wire harness, battery removal. You can pry the mount out without removing the quarter panels and wedge it in. Just take care in doing so or you'll have to hammer out any damage you caused to them. Im not sure about any other engines.
Answer to "Runs rough when temp sesor is plugged in"How did this start happening? Like what were you doing? Lots of times nothing you did caused it, just a bad part(s). Did you buy it that way? Just clues to the puzzle. Odb 1 doesn't always throw a code when it's a small flux. Does it throw a code? If not then: Check your - vacuum lines, egr valve, o2. *If vacuum lines show any wear then check them (careful they are fragile) *Clogged egr happens but no very often, or even stuck open. (1) test the ohms on the o2 sensor wire. I would also test the sensors you replaced especially if you bought off brand, not common but they can just be bad. It could be your catalytic converter.
Answer to "Speedomometer cable and gas guage"Read everything and do simplest/easiest first. Sorry but I have only had 2 hours sleep in 48hrs and i typed it on my phone so it may be confusing. Speedometer: **does the truck shift fine? -tap the instrument panel a few times. The older the panel gets the more likely it can get stuck. -check the tcm fuse under the hood (test it) -unplug the vehicle speed sensor buffer (behind glove box) for 5 minutes then plug back in - check the vehicle speed sensor on the back of the transfer case. **try these first then we can dwell deeper** Fuel: -it is almost always the ground strap. It runs from the fuel pump (in/sticking out) of the gas tank (drivers side) it runs to the frame itself. Test it first, then IF it's bad i suggest dropping the tank. Or cutting the bed (make a door) -make a whole new connection and use a self tapping screw to attatch it to the frame. (you can reach the ground without dropping it or cutting but its difficult) **The floater on the pump may be stuck or broken. Check this as well. Hopefully...