I am a bit confused about when to use the method of images in E&M? For example, in Griffiths' Introduction to Electrodynamics, Example 3.2, the problem reads:
A point charge $q$ is situated a distance $a$ from the center of a grounded conducting sphere of radius $R$. Find the potential outside the sphere.
But in Example 2.7, which says,
Find the potential of a uniformly charged spherical shell of radius $R$
or Problem 3.1, which says,
Find the average potential over a spherical surface of radius $R$ due to a point $q$ located inside
the method of image is not used to solve the problem. In Example 2.7, this equation for the potential is used instead: $$ V\left(\mathbf r\right)=\frac{1}{4\pi\epsilon_0}\int\frac{\sigma}{r}da' $$
Is it because the object is "conducting" that we use the method of images? And if so, why? Could someone help me clear up my misunderstanding?