Since the presence of an energy hub (EH) leads to change the expansion planning problem of electrical power system. Therefore, in this study, the nature of optimal generation and transmission expansion planning in the presence of EH is studied. Also, the effect of applying the proposed hub with and without considering energy storages (ESs) as well as the short and long-term corrective actions to reduce the losses and costs are investigated. In addition, demand response and line transmission switching are considered as effective approaches to improve resilience in the proposed dynamic multi-level model. This nonlinear problem is solved sequentially considering the random approach and using differential evolution algorithm (DEA) and the symphony orchestra search algorithm (SOSA). In this paper, the proposed objective functions are studied in five-level and the results show the efficiency of this model in solving the planning problem. The findings show that the proposed planning model decreased capital costs of transmission switches as much as ۲۶%, the capital cost of the transmission as much as ۲.۲۹%, the congestion cost as much as ۱.۸%, The capital cost of generation units as much as ۳.۷۵%, the payment capacity paid to generation units as much as ۱.۸%. Also, the expected profit of the generation units has increased as much as ۳.۷۵%. To show the competence of the proposed algorithms, the ۴۰۰-kV test system with ۵۲ buses in Iran is simulated in MATLAB environment.