וַיֹּאמְר֞וּ הָ֣בָה ׀ נִבְנֶה־לָּ֣נוּ עִ֗יר וּמִגְדָּל֙ וְרֹאשׁ֣וֹ בַשָּׁמַ֔יִם וְנַֽעֲשֶׂה־לָּ֖נוּ שֵׁ֑ם פֶּן־נָפ֖וּץ עַל־פְּנֵ֥י כָל־הָאָֽרֶץ׃
И они сказали: 'Приходите, давайте построим нам город и башню с ее вершиной на небесах, и давайте сделаем нам имя; чтобы мы не были рассеянны за границей на лице всей земли.'
Rashi
פן נפוץ LEST WE BE SCATTERED ABROAD — That He shall not be able by bringing some plague upon us, to scatter us from here.
Rashbam
הבה נבנה לנו עיר, according to the plain meaning and the commonly held opinion that the people of that time were punished for their grandiose plan of building a Tower which was meant to reach the heaven, what are we to make of Deuteronomy 1,28 in which Moses described cities of the Canaanites as having walls as high as the heaven? Why were these walls not destroyed by G’d? We must revise our opinion of why the people were punished, and accept that their principal sin was in not fulfilling G’d’s basic directive to be fruitful, to multiply, and to populate the whole earth, not just a small valley. Their declared objective had been not to scatter (verse 4) The fact that G’d forcefully scattered them afterwards shows that their sin must have been their failure to do so voluntarily.
Radak
ויאמרו הבה נבנה לנו עיר, the purpose of the city was residential, the purpose of the Tower was to serve as an observation tower enabling the people in the city to keep track of where their flocks and herds were grazing. It would also serve as a beacon for shepherds who were far away to find their way home by focusing on the Tower.