I think it was a Carlos Castaneda book which said that the internal dialogue is our way of preserving the world we live in. Another book (on meditation) said that most of our thoughts repeat day to day identically. Another book on meditation said that most of our thoughts aren't even really our own, and that they actually came from the people around us.