This study presents the optimal model of the coordinated flexible energy and self‐healing management (C‐FE&SH‐M) in the active distribution network (ADN) including renewable energy sources (RESs), electric vehicles (EVs) and demand response program (DRP).The flexible energy management (FEM) is extracted using coordination between the RESs, EVs and DRP. The self‐healing method (SHM) is related to multi‐agent system‐based restoration process (MAS‐based RP) that finds the optimal restoration pattern at the fault condition according to the different zone agents (ZAs) distributing along with the network. This method minimizes the difference between energy cost and flexibility benefit related to the FEM part and difference between the number of switching operation and priority loads restored based on the SHM part. Also, this problem subjects to power flow equations, RESs and active loads constraints, restoration process formulation and system operation limits. Stochastic programming is used to model the uncertainty of loads, energy prices, RESs and EVs. Hereupon, the suggested strategy is implemented on the 33‐bus radial distribution network and it is solved by the crow search algorithm (CSA). Ultimately, the obtained results imply the high flexibility and security of the operation, incorporating the proposed strategy, and delineate the optimal restoration scheme for the ADN.