Ответ:

  1. While I was walking to school, I met my friend.
  2. She was cooking dinner when the phone rang.
  3. They weren’t sleeping when the storm started.
  4. What were you doing when I saw you yesterday?
  5. He fell while he was running in the park.

Past continuous gives the ongoing background action; past simple identifies the completed or interrupting event.