But in the end, the Bible is all about life, not sin.
1. The history of Israel (later the kingdoms of Israel and Judah) is there to show us that God would bring the Messiah/Savior through the nation of Israel, and for the salvation of mankind. And that in spite of all the privileges given to the Israelites, they failed to keep the Law again and again.
2. The Law of Moses is there to show humanity that no one can be saved by trying to keep the Law perfectly. It is also there to show all men that there is none righteous, no not one. All are guilty before God, therefore all need to repent and believe on the Lord Jesus Christ.
3. The Gospel of Christ is to show us that salvation -- the gift of eternal life -- is purely by the grace of God and based solely upon the finished work of Christ. All human works are excluded.
4. All the Bible prophecies for the future are there to show us that God will eventually establish everlasting righteousness and peace upon this earth, and there will eventually be a New Heavens and a New Earth.