It is used to express an action in progress in the past. We don't know when it started and finished:
I was eating breakfast in the morning.
He was reading in his bed at 10 p.m.
It is used to express a process which was changing or developing:
It was getting colder.
The prices were getting lower.