We study a new geographical routing protocol for wireless sensor networks (WSNs). Greedy packet forwarding (GPF) algorithm is an attractive localized routing scheme for wireless sensor networks because of its directional routing property and scalability. In pure GPF, we add a load balancing mechanism, which is also called an energy-aware algorithm. Based on the energy-aware GPF this paper considers lossy wireless link condition because the choice of high quality link reduces transmission errors. We call our algorithm energy and wireless link aware GPF (EWG). We use simulations to verify our algorithm and compare the performance with other methods. Our results show low transmission errors and extension of the network lifetime.