The New Testament was written in order to make it possible for humanity to receive spiritual salvation. In order to have the knowledge that would save us, we need to know who Jesus Christ was, what he did for us, and to accept His sacrifice for our sins. We have to know whom God is, our Creator, who knows best how we should live our lives. Paul explained how important it was to have specific spiritual knowledge.
13. For everyone who calls on the name of the Lord shall be saved. 14. How then shall they call on Him in Whom they have not believed? And how shall they believe in Him of Whom they have not heard? And how shall they hear without preaching? (And, we could add, how could they learn about God and study about salvation unless the New Testament was written - Romans 10:13 - 14, HBFV throughout unless stated)
Therefore, it is important for people to spread the good news, or gospel, of Jesus so that more people may believe in Him and accept His warning message about God's coming ruling government, the kingdom of God. For these reasons, Jesus wanted the gospel preached to all people throughout the world.
15. And He (Christ) said to them, "Go into all the world and preach the gospel to the whole creation" (Mark 16:15)
The New Testament provides humanity with saving knowledge, which the Old Testament does not fully possess, although the same God inspired both. Most importantly, spiritual salvation and eternal life can only come through Jesus and not by some other means or person, as Peter explained to his nation's leadership.
12. And there is no salvation in any other, for neither is there another name under heaven which has been given among men, by which we must be saved (Acts 4:12)
Similarly, Jesus Himself told His disciples on the night before He died the following.
6. Jesus said to him, "I am the way, and the truth, and the life; no one comes to the Father except through Me" (John 14:6)
So if we do not know who Jesus who and what He did for us, we cannot be saved. True, mere intellectual knowledge about the facts of Jesus' life and identity as the Son of God and God the Son is necessary but not sufficient to produce salvation. We also need to emotionally accept and act on what we hear as well for it to be effective in saving us. After all, as James states, 'faith without works is dead' (James 2:26).
The New Testament reveals to humanity the purpose and meaning of life. The main purpose of life on this earth, when correctly lived, is to prepare us for the next life. We are supposed to become like God in character, as Christ tells us, "Therefore, you shall be perfect, even as your Father Who is in heaven is perfect." (Matthew 5:48)
We are also to become just like Jesus, who is God, "Until we all come into the unity of the faith and of the knowledge of the Son of God, unto a perfect man, unto the measure of the stature of the fullness of Christ;" (Ephesians 4:13). This set of twenty-seven books gives us knowledge that is crucial to living a happy life. Such information, however, cannot be known by human reasoning and sensory experience alone.
In conclusion, the New Testament was written in order to provide people with saving knowledge that tells them the purpose and meaning of life.