temp gauge/Cooling fan issues

The temp gauge on my 90 LS isn’t working at all.Where does it get it’s signal from??ECU or directly from the Coolant temp sensor??? Also my fans won’t come on unless the A/C is on, which i assume is the thermo switch on the back of the block, but would this have anything to do with the gauge? Any help is appreciated.TIA