This is link of buzzer I got FV 5x(10pcs 5v Active Buzzer Magnetic Long Continous Beep Tone Alarm Ringer F6 for sale online | eBay . I found datasheet and it's the first electromagnetic buzzer ( SD1209T5-A1) https://datasheet.lcsc.com/szlcsc/SD1209TT-A1_C91083.pdf .I tried your suggestions and none of them worked
. Should I buy a piezo speaker or electromagnetic buzzer of lower operating voltage?