We use the Past Continuous to talk about actions or situations that lasted for some time in the past, and whose duration time is unknown or unimportant.
The Past Continuous is often used when one action in progress is interruped by another action in the past. The Past simple is used in such sentences. We usually use when or while to link these two sentences.