If you do something often and regularly it is a habit.
If you do something in a usual or fixed way it is a routine.
- She had made a habit of being late for work.
- Her morning routine is always the same: shower, coffee, teeth, dress, out the door by 7am.