Energy-saving techniques are vital for the battery-powered sensor devices (SDs), which affect their lifetime. In this paper, we propose an air-and-ground cooperative wireless sensor network (AGWSN), wherein several UAVs are deployed as aerial access points (AAPs) to assist the terrestrial access point (TAP) for data collecting. The positions of the AAPs can be modified to approach the cell-edge SDs, therefore reducing the energy of the SDs expended in uploading data. To fully exploit the potential of the AGWSN, we formulate a joint AAP position optimization, channel allocation, and power control problem to minimize the total power consumption of all SDs subject to their decoding threshold. To solve the formulated problem, we first analyze the optimal user pairing rule in each cell and based on the rule propose a maximum-weighted-independent-set inspired algorithm for the AAP position optimization. Then, we remodel the channel allocation problem as an interference minimization problem and devise a K-CUT based algorithm to solve it. We further propose a low-complex iterative algorithm to obtain the optimal transmission power for each SD. The performance of the proposed algorithms is evaluated via theoretical analysis and numerical simulation. Simulation results indicate that if the intracell and intercell interference are not well coordinated, the superiorities of the AGWSN cannot be developed, and its performance is even worse than the traditional terrestrial network (TTN). Cooperated with our algorithms, the AGWSN significantly outperforms the TTN in terms of total power consumption and probability of successful decoding.