According to the limitation of resources in wireless sensor network (WSN), this paper presents a new key pre-distribution scheme based on plane grid. It helps not only to economize the space of storage and keep low consumption, but also ensure that all neighborspsila nodes can establish pair-wise keys directly, however, has a poor safety performance. Then we extend the scheme to three-dimensional grid and propose a novel key pre-distribution called three-dimensional grid key pre-distribution scheme. The results of analysis indicate that the scalability and resilience of the scheme are much better.