If you remove the bulbs is there 12v on the high beam socket? Fairly unlikely that it’s an earth problem being the low beams work. Sometimes the socket tabs break off. Unlikely on both tho.
If there’s no 12v, work back from there. Check the terminal connection at the firewall next. Then follow...