Our gravity holds an atmosphere composed mostly of nitrogen, oxygen and water vapor. We have night. Too much radiation coming in from space can damage organic molecules, the building blocks of life. Our planet receives a moderate amount of energy from space. Our atmosphere absorbs much of that energy, protecting the life here.
Earth has an abundance of water.
Water is a unique chemical. It has a small molecule but its unequal charge allows it to dissolve almost any material. Liquid water holds a huge amount of heat energy and resists changes of state to solid or gas. When it freezes it becomes less dense and floats on liquid water, it also releases most of its heat energy into the surrounding water leaving it warmer. When water evaporates it carries heat energy with it, this cools the remaining water.