Blogs, interactive commentary, user-ranked content, forums, news feeds, file uploads, AJAX.
These tools connect the users to the content, which build communities. That keeps people coming back.
Throwing the tools on a website, in and of themselves won't build a community. Providing a service and a space where there is need, will.