A routine is like something you do related to your day or work. Like a schedule. It can also be the order in which you do tasks in your work or in excersise ect.
A habit is something you do and cant stop. Many times it is associated with bad things. Like smoking can be a bad habit.