When planets do it, we say they are orbiting. Rainbows are just to look at, not to really understand. While the earth seems to be knowingly keeping its distance from the sun, it is really only centrificating. Someday we may discover how to make magnets that can point in any direction. South America has cold summers and hot winters, but somehow they still manage.
Most books now say our sun is a star.
But it still knows how to change back into a sun in the daytime. Water freezes at 32 degrees and boils at 212 degrees. There are 180 degrees between freezing and boiling because there are 180 degrees between north and south.