How to change color when sphere touch to a box or 3D obj?

Hi,
I am doing a beginner project about using a sphere to change color of 3D object when it’s touch. The color will not be return back to the old self after sphere touched and permanent.