Intersection of spheres and isometries