Wolves beat Birmingham 3-2 at St Andrew's on Easter Monday to climb out of the Championship relegation zone.