what is the relationship between the moon's surface gravity, lack of an atmoshere, and temperature range?

There is not sufficient gravity to hold gases, including water vapor. Without water in the soil, with its high heat capacity, temperatures vary widely.