Electric vehicles (EV) and 5 G base stations, functioning as flexible load resources, contribute significantly to the provision of ample reserve capacity for the power grid. The emergence of 5 G Vehicle-to-Everything (V2X) technology has fostered a coupling between EV and base stations, further enhancing their roles within the power grid. Building upon this foundation, this paper proposes a scheduling strategy for demand response in flexibility resources under the 5 G-V2X framework. Initially, the dispatchable load of EV is examined in conjunction with the traffic network. Subsequently, we consider the communication power consumption resulting from the connected vehicle model, enabling us to devise path planning and charging navigation strategies for EV. Lastly, we establish a scheduling decision model that aims to minimize both the operation costs of base stations and the variance in grid load. The simulation is validated using real-world road conditions in the primary urban area of a city. The findings illustrate that the proposed dispatching strategy not only achieves a mutually beneficial outcome for EV users and aggregators, without disrupting EV charging and discharging processes, but also enhances the capability of demand response, thereby ensuring reliable grid operation.