Three western Massachusetts communities have been awarded grant funds to restore critical wildlife habitats and expand outdoor recreation.