Reactivity series of metals given by the mnemonic:
Please Send Little Charlie McLean A Zebra If The Lean Horse Cannot Munch Sweet Grass Pleasantly.
Everything above hydrogen (Horse) i.e. potassium to lead can potentially displace hydrogen. The further it is from hydrogen, the easier it is displaced. The stronger the acid, the easier it is displaced. Therefore potassium to magnesium will displace H from water and potassium to lead will displace it from acids. N.B. Aluminium gets a protective oxide coating that can block the reaction.
Metals below hydrogen in the list cannot release hydrogen but can react with acids in various other ways. e.g. copper + nitric acid releases poisonous brown fumes of NO2.