Due to several factors, wind energy becomes an essential type of electricity generation. The share of this type of energy in the network is becoming increasingly important. The objective of this work is to present the modeling and control strategy of a grid connected wind power generation scheme using a doubly fed induction generator (DFIG) driven by the rotor. This paper is to present the complete modeling and simulation of a wind turbine driven DFIG in the second mode of operating (the wind turbine pitch control is deactivated). It will introduce the vector control, which makes it possible to control independently the active and reactive power exchanged between the stator of the generator and the grid, based on vector control concept (with stator flux or voltage orientation) with classical PI controllers. Various simulation tests are conducted to observe the system behavior and evaluate the performance of the control for some optimization criteria (energy efficiency and the robustness of the control). It is also interesting to play on the quality of electric power by controlling the reactive power exchanged with the grid, which will facilitate making a local correction of power factor.