A common question that arises for the seeker is " how did the I, the Pure Self, the Infinite Lord, become this little self, the ego?". It is a very valid question as the Guru has repeatedly emphasized that you are none other than the Absolute, the Self. One must wonder as to how the Self got contaminated, so to speak, and become this imperfect self, the ego. The answer to this question again depends on the level of maturity of the seeker. Or rather, from what level of understanding is the seeker approaching this question. For those who can accept the teaching of the Guru, the answer is simply "no particular cause". But, the seeker may not be satisfied with that answer and may continue to wonder or become frustrated for a lack of answer.
To understand this better it is essential for the seeker to undertake a detailed and in-depth study of Vedanta. The important thing to note though is that a study of the subject of Vedanta is in itself not enough. It is important to arrange the ideas that arise from this study in a correct order and to be able to cogitate and meditate on the matter on a daily basis.
It is important to understand that all such questions arise only in the mind. You do not ask these or any other questions when you are in deep sleep. Hence, an easy way may be to find out what exactly is the mind. Once, the nature of the mind is figured out, then the contents of the mind can be more easily figured out.
The mind appears and disappears in a 24 hour period. The mind is absent in deep sleep but is fully functional in the wakeful state and partially so in the dream state. So, what exactly is the mind? Is it a thing?Is it present in the brain as you may be postulating? Just so you know, neuroscience has not yet figured out the exact location of what you may call the "mind". The mind is nothing but thoughts. And thoughts do not have any material mass. To go deeper into the understanding of the mind, one has to go deeper into the understanding of the "person" investigating it.
It boils down to understanding this "I", the "person", the "individual", the self, who is investigating the mind and all other questions about Vedanta. At this juncture, you have the choice of investigating the nature of your self or investigating the nature of the mind. By investigating the nature of your Self, you will without any effort get an answer about the nature of the mind.
But, those who do not want to wait till they find out the nature of the Self, may want an easy answer to the nature of the mind. For this answer, while there are many texts in Vedanta that will answer it, none is more easy to understand than the introduction to Vedanta " Vivekachoodamani" or "The Crest Jewel of Discrimination" written as 580 verses by the great Adi Shankaracharya in the eight century A.D. In this text, the Acharya explains that due to ignorance, man identifies the Self with the not-Self thereby bringing about bondage and the miseries of birth and death. He considers the perishable body as real and nourishes and cherishes it. As a result, he becomes bound much like the silk-worm in its cocoon, woven by its own threads. This bondage comes about due to the fact that you forgot your true self. The cause of this forgetfulness is ignorance (avidya). The acharya gives a wonderful example of the moon(mind) eclipsing the sun(Self) from the observer (me). As long as there is this mind between me and my Self, the glory of the Self is eclipsed from me. Mind being a manifestation of ignorance (avidya) has to be transcended to realize the Self and thereby bring about an end to the idea of bondage and the sufferings associated with it.