In all developed countries, energy systems are being adapted to employ sustainable energies as such these countries are developing some programs to reduce the usage of fossil energy as much as possible in order to avoid environmental pollution and make the world a better place to live. The use of electrical vehicle (EV) is one of the appropriate options in this regard. In this paper, the power of charging stations, load uncertainty, and the uncertainty of electricity price in power systems were modeled using the behaviors of EV owners and a two-point estimate method, respectively. Then the contribution coefficient of charging stations and wind generation units as a distribution system were optimized using the NSBSA algorithm. Simulation was performed in MATLAB software, and IEEE 9-bus test system validated the efficiency of this algorithm.