Society usually means the wider culture, whereas community is a smaller group of people.
So for example:
You have American society, which the larger culture and beliefs of America as a country.
But your town is a community, your school is a community, etc. Communities are affected by society's beliefs and problems, but they have their own traditions and problems as well.
I hope this is helpful :)