Using solar energy and phase change materials to supply energy to a building to reduce environmental pollution