What do you know ...
How was teaching in the distant past?
who was thefirst interested in learning and education?
What are the first school in history? How was it the form school in the past?
There have always been schools. In the beginning, they were less formal. Young children worked alongside same gender parents. Little girls learned from mothers, and little boys learned from fathers. By working alongside their parents, they practiced the skills they would needs as adults and were guided by their parents and other elders.
Confucius is often given credit for providing the first schools available to a large part of the population, probably in the 6th century B. C. Religious schooling probably began after the creation of the first alphabet (as early as 1800 B. C.). It is known that the Sumerians and Egyptians taught large segments of the population to read and write (around 300 B. C.).
I was curious about your posting and had to find out what information was out there. The answer I found was that the first public school (in America) was built in Boston, Massachusetts in 1635. The name of the school was Boston Latin School.
Education in the distant past consisted of one person teaching another, starting with parents showing the children how to help with the tasks involved in hunting or gathering and creating shelters. At some point, the one doing the teaching came to be known as a "tutor" or "mentor" with the learner labeled as a "student," "apprentice," or other such term. As more time went by, the "teacher" figure began to have more than one learner at a time and formalized lessons began to develop.
There's simply no way to know when the first schools came to exist.
In the US, at least, education in the past was much more about rote learning and included physical punishment for those who did not learn. Stories from 100 or 200 years ago have kids simply learning how to recite the lessons in their books. They were not really asked to think, just to memorize.
Schools of some sort probably existed long before the ones about which we know. The first writing probably involved some kind of formal training in how to write, so schooling has probably existed at least since the development of writing. It's a fascinating question, but most of the evidence that would allow for a good answer has probably long vanished. In any case, here's a useful link that will get you started:
Earlier posters have given brilliant views about education & schools in the past. A good account of oldest schools is given in the following link.
I also agree post 7 that parents have always been the first teachers since birth and will go back to the mother's lap as the first school. However according to my belief, the knowledge about all worldly things to be encountered by the mankind was given to Adam by the Creator. He had it in his genes and the same is being transferred to the later generations genetically. The part of that knowledge which was not relevant in the past is being revealed from time to time and we call this revelation as discoveries through research.
Having said that we find account of monasteries in the distant past as back as 400 B.C. Monesteries played the role of schools in the earlier civilisations and were imparting what they considered the divine knowledge.The education system being followed there even today is very primitive and can be assumed to be unchanged.