This paper presents a pioneering approach that integrates a Self-Healing System through a Smart Distribution Network, which employs a two-step implementation of a comprehensive Energy Management algorithm and a multi-agent system with an autonomous distributed regeneration method. The novel method improves network operation through optimized management of local microgrids, which include diverse components comprising renewable energy sources, electric vehicle charging infrastructure, and energy storage systems. The first phase concentrates on minimizing network operation costs by adhering to system utilization restrictions and optimal load distribution, while the second phase addresses the optimization of regeneration processes, which decreases discrepancies between recoverable priority loads and switching operations. The evaluation introduces a stochastic programming approach to model and manage uncertainties, and utilizes the Kantorovich method and the roulette wheel mechanism to improve reliability. ...