Could you please try like this.
Here CUBE name is given to glutSolidCube and SPHERES name is given to sphere drawing.
Now you will get SPHERES on picking sphere objects in screen.
glRGB(255, 255, 0);
glLoadName(CUBE);
glutSolidCube(75.0f);
glLoadName(SPHERES);
glRGB(128,0,0);
glTranslatef(120.0f, 0.0f, 0.0f);
glutSolidSphere(50.0f, 15, 15);