How do i fix the grounding and the cold wire when they both changed to hot wire?

Both grounding and cold changed to hot and im wondering how to change it back.

That is easy, might take 5 minutes. Simply remove the existing ground wire clamp from the hot water line and install it on the cold water line.