The painful truth, yet joyful reality, that God loved us so much, to give Jesus as an offering for our wicked hearts, that whomever would believe in him, would live, just as Jesus would live again, as he rose from the grave, and conquered death.

www.bible.com/100/jhn.3.14-15.nasb1995

This is a veiled prediction of Jesus’ death on the cross. Jesus referred to the story of Nu 21:5–9 where the Israelite people who looked at the serpent lifted up by Moses were healed. The point of this illustration or analogy is in the “lifted up.” Just as Moses lifted up the snake on the pole so that all who looked upon it might live physically, those who look to Christ, who was “lifted up” on the cross, will live spiritually and eternally.