The sun is one of the heavenly bodies, a star, while the earth is one of the planets. Both the earth and sun are spherical in shape, but the sun is proved to be bigger than the earth. The earth is made of some necessary components such as the hydrosphere (the water bodies), the lithosphere (the solid part of the earth), and the atmosphere (which makes up the airspace).
The sun is just like a huge ball gas that is of very high temperature. The earth is palatable to accommodate living organisms, while the sun does not have any living organism on it. Any living organism, including humans that goes near the sun is set for death.
Comparing these two bodies in dimension, size, and volume, the sun is about a hundred times bigger than the earth. The earth constitutes of several minerals and elements, while the sun is composed of some dangerous gases.