When dilute hydrochloric acid reacts with zinc metal, zinc will displace hydrogen from hydrochloric acid and form zinc chloride. It is accompanied by the release of hydrogen gas.
When we place a burning candle near the mouth of the test tube a pop-up sound is produced which confirms the presence of hydrogen gas in solution.
Sodium metal on reaction with cold water gives sodium hydroxide and hydrogen gas will evolve.