Sums of Three Squares and Lattice Points on the Sphere