The fuel gauge on the YJ will read full if it has power but the sensor wire from the tank is not connected. If it was grounded it would drop to zero. If you can get to the plug back by the fuel pump you can short out the black ground wire and the middle wire in the plug, I think it's brown. The other wire is to power the fuel pump. Shorting the black and middle wire simulates no resistance from the tank sender and will drive the needle to empty, not shorted will drive the needle to full.
The Temperature sensor is located on the cylinder head back next to the last head bolt on the left side near the firewall. Very close to one of the nuts you removed when taking out the heater core box. There's a very good chance you knocked off the wire, or as in my case, broke off the top of the sensor.