I don't think Link so much has the knowledge of his previous 'incarnations' as he is driven by the same courageous spirit that defines them. I suppose there may be some sort of instinct that compels him to be the hero, due to him embodying courage as a virtue.
Since Link is a silent protagonist...