We use the past continuous:
for an action which was in progress when another action interrupted it.
We use the past continuous for the action in progress (the longer action), and the past simple for the action which interrupted it
(the shorter action).
I was watching TV when the doorbeell rang.