Why is the cold water setting delivering hot water all of a sudden?
If you haven’t changed the hoses at all, and you’ve been using this washer regularly with no problems, the temperature switch has probably gone bad. If the temperature switch itself has gone bad, there is no longer any control governing which side of the water-inlet valve is going to let water in.