Use was/were + verb-ing for the continuing scenario and simple past for the decisive action that interrupted it.
Enables narrative depth by framing parallel timelines and background ambiance in past storytelling.
"The engineers were testing the generator when the power tripped."
"Were testing" describes the continuous background effort; "tripped" marks the sudden interruption.
The background activity takes continuous ("was cooking"), and the prompt interruption takes simple past ("rang").
Narrative storytelling, legal testimony, incident reports, and general conversation.
Past Perfect (had + past participle) designates an action finished before another point in the past.
Present Simple describes timeless habits and facts; Present Continuous describes ongoing actions in progress.