Gas gauge and temp gauge only half working

The car is a 65 Valiant V200, 273. The gas gauge only works half the time, and sometimes it works for a long period of time, and sometimes it kicks in and out, and then won't work at all. I pulled the sending unit out of the tank, cleaned the connection point, which made it a little better, but still doesn't work always. Also, the temperature gauge only works with the gas gauge. When the gas gauge stops working, so does the temp gauge. This is probably a simple solution, but could I get your guys' imputs? Thanks.