In general, the further north you go, the cheaper homes are.
However, you have to balance it out with your commute.
Salem, Pelham, and Windham are good places to start. Each town is different. Pelham being the cheapest, and Windham being the most expensive.