Hello
Sentence 1 is correct
Sentence 2 - you should say flows rather than flow, then it is correct
Sentence 3 is correct
Sentence 4 - you should say, "as soon as it started to rain" - you don't need "had" here
Sentence 5 - is correct but sentence 4 (with the correction) would sound more natural in spoken English