As a general rule, if a metal reacts with cold water, you get the metal hydroxide. If it reacts with steam, the metal oxide is formed. This is because the metal hydroxides thermally decompose (split up on heating) to give the oxide and water.
Though, there are some who dont form oxides at all, only hydroxides