The Earliest Phases of Galaxy On the origin of Damped Lyman-$alpha$ systems