While to introduce ... longer background situation which started before the shorter action. Consider the following and, at the same time, note the use that is made of the past continuous in ...
Mick was checking the engine when the rescue helicopter arrived. We also use the past continuous to describe a scene or situation in the past or for an action that continued for some time.