It is often used in stories, when one thing happened after another. We use the past continuous for something that happened in the past but was not finished at a particular time. This can be an ...
Had been working is the past perfect continuous. It's exactly the same as the past perfect, except we use it for longer actions: she had been working all day. Anyway, while I was jumping on the ...