Use the past simple to talk about actions that interrupted other actions in the past.
When I was sitting on the plane, it said hello to the man next to me!
Use the past continuous to talk about actions that were interrupted.
When I was walking around, I saw this.