Yes, water, ice and steam are the three same substances. We can justify it easily. As, water is a liquid substance, ice is the solid state which is made by freezing water and the last, the steam is the gas state which is a water vapour made by evaporating the water. So, they are the three states made from the same substance.