Extreme temperatures, either hot or cold are best to stay away from. Freezing temperatures will certainly stiffen any grease and thicken oil. I can’t be sure if this would cause any permanent damage. The garage may also be subject to high humidity in the Summer and that will cause rust on steel parts. Ideally, you want to store the trains in a dry area and avoid extremes of temperature.