WordPress.org offers free software that you can install on a web server. You can upload and install themes and plugins, run ads, and edit the database. Learn about the differences here. http://support.wordpress.com/com-vs-org/
Also note that premium themes and all upgrades provided through WordPress.,COM can only be used on free hosted WordPress>COM blogs and no others.