Here is a fourth way of computing the energy of a uniformly charged solid sphere: Assemble it like a snowball, layer by layer, each time bringing in an infinitesimal charge dq from far away and smearing it uniformly over the surface, thereby increasing the radius. How much work dW does it take to build up the radius by an amount dr? Integrate this to find the work necessary to create the entire sphere of radius R and total charge q.