He was imparting a message to simple people using a figurative story.
There is no other sane or rational interpretation of the bible than figurative. None. Literalism is the promotion of delusion. There are no talking snakes. There never were. The earth is not 6,000 years old. The whole population of the earth didn't die out 3,500 years ago in a flood. We know that because people were living then in China and Africa and Europe and they are still here.
OK, then all these scriptures allude to a fictious story. If it isn't true, why is it there? I'd ask your pastor to see if he thinks its true or not.
Matthew 24:37-38 New King James Version (NKJV)
37 But as the days of Noah were, so also will the coming of the Son of Man be. 38 For as in the days before the flood, they were eating and drinking, marrying and giving in marriage, until the day that Noah entered the ark,
Luke 17:26-27New King James Version (NKJV)
26 And as it was in the days of Noah, so it will be also in the days of the Son of Man: 27 They ate, they drank, they married wives, they were given in marriage, until the day that Noah entered the ark, and the flood came and destroyed them all.
Hebrews 11:7 New King James Version (NKJV)
7 By faith Noah, being divinely warned of things not yet seen, moved with godly fear, prepared an ark for the saving of his household, by which he condemned the world and became heir of the righteousness which is according to faith.
1 Peter 3:20 New King James Version (NKJV)
20 who formerly were disobedient, when once the Divine longsuffering waited[a] in the days of Noah, while the ark was being prepared, in which a few, that is, eight souls, were saved through water.
2 Peter 2:5 New King James Version (NKJV)
5 and did not spare the ancient world, but saved Noah, one of eight people, a preacher of righteousness, bringing in the flood on the world of the ungodly;