The best explanation for the observation that the buzzer does not make noise, even though all components are in working order, is: The switch is open.
When the switch is open, it interrupts the circuit, preventing electrical current from flowing to the buzzer, which is why it does not produce any sound.