There is no atmosphere on moon, therefore during its cyclicrotation when it moves away from sun it becomes verycool and when it comes close to sun it becomes very hot.Moreover in absence of vegetation and water there is no check on temperature control.