Earth and Sun

Why does the sun rise and set everyday? What if one day it didn’t?