Summary:
If a city is captured, its World Wonders and Culture Buildings that hold Great Works are captured as well. A city's National Wonders are destroyed when the city is captured.
The city's military buildings (Monument, Barracks, Walls, etc.) are always destroyed when the city is taken. All other buildings have a 66% chance of being captured intact.