Digital alarm clock

Looks like that buzzer has a resistance of 90 Ω.
Too low to be drive by an output pin directly.

Suggest you drive it with a transistor or buy a piezoelectric speaker.
Place a snubbing diode across the buzzer, cathode to Vcc.

How did the Serial.print test work?