Earth exists in something called as the Goldilock's zone i.e, a zone where the temperature is just right to support life as we know it. Going further away from the Sun will make the Earth very cold (decrease in temperature) while coming nearer will increase the temperature and make the Earth very hot.