Use Past Continuous for longer background actions and Past Simple for shorter interrupting actions.
Practice tip: Which action took longer? Longer = Past Continuous (was doing). Shorter = Past Simple (did).