Ответ:

  1. The baby was sleeping when the dog suddenly started barking.
  2. I met my cousin while I was shopping at the mall.
  3. They were waiting for the train when they heard the announcement.

Past Continuous обозначает длительное действие, происходившее в момент другого действия; Past Simple — краткое завершённое действие.