Will

Will is a function word that tells the listener that the sentence is about the future.

Remember, function words do not usually have a meaning by itself.

History
But, before it became a function word in modern English, it had a meaning too. It meant, "to want" or "to desire" something.

So in the past, "I will go to the restaurant" meant, "I want to go to the restaurant".