Step-by-step explanation:
When a buzzer is attached to a certain circuit and we press the key then the circuit gets complete.
As a result, the current will start to flow from the batter or cell and moves towards the buzzer. Thus, buzzer produces sound due to the flow of electric charges through it.
After passing through the buzzer, the electric charges again move towards the battery.
Hence, the electric charges move in the complete circuit.