Here is the story of Shem, Ham and Japheth. They were Noah's sons. After the flood, they too had sons.
References for Genesis 10:1
The sons of Japheth were Gomer, Magog, Madai, Javan, Tubal, Meshech and Tiras.
References for Genesis 10:2
The sons of Gomer were Ashkenaz, Riphath and Togarmah.
The sons of Javan were Elishah, Tarshish, the Kittim and the Rodanites.
The people who lived by the sea came from all of them. Their tribes and nations spread out into their own territories. Each tribe and nation had its own language.
The sons of Ham were Cush, Egypt, Put and Canaan.
References for Genesis 10:6