I would say he was 'gifted', yes. But that doesn't mean magically. Mozart was gifted with musical genius. Einstein was gifted. Some people have a certain natural proclivity towards certain realizations. Jesus was gifted with a certain spiritual proclivity, that allowed him to see what others could not easily, I believe. But that of course does not mean he did not have work at it to develop it! And that is what the mythologies about Jesus like to convey, that he was not like us in that his teachings, his insights were all fully intact from his infancy onward. That point of view to me is not very helpful, it's just fantastical to inspire someone to believe in magic, of some magical kingdom in the sky that will rescue you if you obey the law and just believe, click you heels three times, and whatnot.
What was Jesus like before 30 years old? On his path. Doing what we do. Taking what gifts he had and tried to develop them. Inspired and insightful, drawn inward towards God. Sought for Truth within, and then beyond what his religious tradition was presenting. Dissatisfied with the status quo, with the religious and cultural system as was. Saw Truth in everything, in the heart of the sinner, in the lilies of the field.
But I'll bet he had misturns to open him to his path. I'll bet he tried religious fanaticism, "obeying" every letter of the law to a T, like Pegg imagines he did, but only to find it unfulfilling spiritually, leaving one with a cup full of religion only, and realizing that the spirit of the law is where Truth exists, not in the letter of the law. His realization was an unfolding, and that unfolding occurred through trial and error, like everyone else. Even if he had a certain deep calling in his life.
It's possible he was part of the Essene community, trying to find God through austerity and denial, but then upon leaving he saw God in others. He probably met a woman, likely Mary Magdalene based on how she is portrayed in the scriptures, and that relationship dramatically altered his approach to understanding the nature of God through the love of another human. Jesus became the person of insight he was, because he gained them through living life, not hiding himself away steeped in religious dogma. He saw freedom from religion as the path to God, and true religion which lives in the heart. That is a man who came to know, to trust, and to rest with what was his own heart, realized through his love of God and others.