object stop falling when reach a specific point

i am making a game in which the balls are falling down on a plane one ball fall over the other ball and they make a line which goes from bottom to topi want that at certain point on y axis the ball stop falling … dont know how to do it the code i used until now for balls to fall down is:

function calling(){

functionsRandom.Range(0, functions.Length);
}

function sphereA() {
var go = Instantiate(sphere,new Vector3(Random.Range(-3, 3),Random.Range(-3,3),-12.78451),Quaternion.identity);
go.renderer.material.color = Color(Random.value, Random.value, Random.value);

}
function sphereB() {
var go = Instantiate(sphere1,new Vector3(Random.Range(-3, 3),Random.Range(-3,3),-12.78451),Quaternion.identity);
go.renderer.material.color = Color(Random.value, Random.value, Random.value);

In your Sphere script, in the FixedUpdate, check the velocity. When the velocity is less than X (where X is zero or something very close), call a function on your Sphere spawner that stops the sphere spawning.

This will only really work if the balls are spawning slowly.