The gift of the Spirit is foundational to the New Covenant. It is the beginning of the New Creation and the gathering of the nations.
The history of Israel includes descriptions of the sins that caused the expulsion of the nation from the Land of Canaan. God foresaw the failures of Israel, and therefore, He determined to make a new covenant, one that is energized and characterized by the Holy Spirit.