This is the complete sentence:
We were planting flowers in the school garden when it started to rain.I was able to find the complete exercise with its options to choose from online, which are:
were planting plant are planting have planted"Were planting" is the only one that is gramatically correct to complete the sentence given, because the sentence says that we were doing something when something else happened, so you need to start with the past continuons.
Check more information in the following link https://brainly.com/question/25005984?referrer=searchResults