i have written program correctly and also done the hardware connections. but buzzer didnt works
Can you send a snap of the hardware connections and send your code in the thread.
DO check for the following,
Connect it to the breadboard for further connections use the male to female wires.
Do no use a resistor with the buzzer.
if still the buzzer does not works then it would be damaged.