Problem with the Heating /Air Condition temperature control panel

I have a 1990 Subaru Legacy wagon. When I bought it, the only way I could make the temperature control unit light up and work was to bang on the dashboard a few times. No it won’t even work when I do that. My idea is just to replace it with one from the junk yard but is there any wiring I should also check or replace…?