There are different words in Greek, which mean different things, and they are translated to the same word in English.
In Matthew 24:14, "world" is ethnesin, from the root ethnos. It refers to the extent of the different people groups (ethnicities).
In Colossians 1:5, "world" is kosmo, which...