Why is the earth's temperature different in different places?

The two basic differences are altitude and latitude. Nearness to major bodies of water also affect the temperatures, as does being close to a cold or warm stream of the ocean.