We use the past simple for something that happened and finished in the past. We use it when we say or know the time when something happened. It is often used in stories, when one thing happened after ...
We use the past continuous to talk about an action that was in progress while or before something else happened. As I was ...