When to use it
Habits, descriptions, settings in the past
Three jobs: past habits ("I used to play football"), continuous past actions ("I was watching TV"), and descriptions of past states — age, weather, time, mood, what people and places were like.
The give-away in English: "used to", "was -ing", "would always". And anything where you're painting the scene rather than reporting one finished event — that scene-setting is imperfect, the one event inside it is preterite.
Model sentence
Cuando era pequeño, jugaba al fútbol todos los días.
When I was little, I used to play football every day.