Pacific Gas and Electric Company signed a contract to buy and operate a wind-energy project that will produce enough electricity for about 100,000 California homes. The deal is with Iberdrola Renewables, a company that wants to build a wind project in San Diego County.