The past simple is used to express habits and states that existed during a period of time in the past. This period can be implied or expressed with a time expression or a clause:
1. When my brother was young, he liked spinach. (State)
I think this should be for a habit.
2. When I was a child, I visited my grandma every weekend. (habit)