Q = mcΔT, solved for whichever quantity you leave blank. Your syllabus might write it Q = mcΔθ and might work in J/kg·K or J/g·°C, so both are supported here rather than assuming one.
Specific heat capacity is how much energy it takes to raise the temperature of one kilogram of a substance by one degree. Water's value is 4180 J/(kg·K), which is unusually high. That single number explains a lot: why it takes so long to boil a kettle, why coastal places have milder weather than inland ones, and why water is used as a coolant in car engines.
Compare that with copper at 385 J/(kg·K). Put the same energy into equal masses of water and copper and the copper gets more than ten times hotter, because it takes far less energy to shift its temperature.
Q = mcΔT only applies while the substance is staying in the same state. During melting or boiling, the temperature does not change at all even though energy is going in, because that energy is breaking bonds rather than speeding particles up. ΔT is zero, so this equation would wrongly predict that no energy is needed.
For those parts you need latent heat instead, Q = mL. A full "ice to steam" question is normally several sections: heat the ice, melt it, heat the water, boil it, heat the steam. Each section uses one formula or the other.