In traditional low voltage networks, energy storage systems are mainly used by consumers to protect against short-term power outages. With the advent of microgrids and the expansion of distributed generation resources and also, the development of energy storage system technology, the role of energy storages are increasing. By the proposed control system, the battery energy storage system (BESS) participates in the microgrid energy management and also plays a role in voltage regulation and compensating for current harmonic, unbalance, and reactive power due to the presence of nonlinear loads. In this paper, fuzzy logic-based energy management is proposed, which considers the battery state of charge (SOC), matching between load and wind turbine unit power curves, and the cost of purchased or injected electricity into the grid. In the proposed control system, the limitation of inverter in reactive power injection and the battery's protection from over-charge and over-discharge is also considered. To validate the application of the proposed control system, simulations are performed in MATLAB/Simulink software. The simulation results confirm and prove the efficiency of the proposed control system.