Here is the plot from Wikipedia of what Wayward Pines is all about:
The plot surrounds Secret Service agent Ethan Burke's introduction to the remote small town of Wayward Pines, his new home from which he cannot escape. The mysteries and horrors of the town build until Ethan discovers its secret. Then he must do his part to keep Wayward Pines protected from without and within.
The first book of the trilogy is called Pine, the second is called Wayward, and the last book is called The Last Town. Check them out!