Can’t get my volume button to work at all

I've had a similar problem with other macs. Resetting my PRAM by pressing command + option + p+ r during reboot fixed the problem for me