How do I create two colliding Spheres?

I created an animation of 2 spheres moving towards one another however, I want it to where once the 2 spheres touch one another, bounce back towards their respective wall, then bounce back again towards one another; so on and so forth. How would I do this?

What I have in mind is that you have to create a script. (You also in to add rigid body and colliders in both objects). You need to create 4 variables( 2 for the rigid bodies components [public rigidbody myrigidbody;] and 2 for the animator components [public Animator myanimator;]). Then create a function [public void StopAnim()
{

}]. Inside of that function you want to enable the Animators and disable the rigodbodies( you need to have the rigodbodies components disabled by default).
Ok now attach the script to both objects and through the Inspector, tell the script what is animator and what rigidbody. The last thing you need to do is go to the last frame of the animation and add an animation event. From that event you need to call the previous function [StopAnim()].