[subject] + was/were + [verb]-ing
[subject] + wasn't/weren't + [verb]-ing
was/were + [subject] + [verb]-ing?
The past continuous says that an action was in progress at a time in the past. It started before that time and went on after it.
Use the past continuous for the longer action, and the past simple for the short one that happens in the middle of it. When goes before the short action.
While goes before a longer action. With two longer actions, both are in the past continuous.
In a story, the past continuous describes the scene, and the past simple says what happened.
Verbs for states, like know, want and like, stay in the past simple.