was/were + -ing · while/when · stative
The past continuous describes an action that was in progress at a specific moment in the past, or that was the background to another event.
Answer out loud — full sentences
Use the past continuous for background and the past simple for events.