The past progressive or past continuous (was or were working) is used to describe an action that was in progress at some point in the past.
It is formed with the verb to be in past simple and the gerund (form finishing in –ing) of the main verb:
Take a look at this video explaining how this tense works: