What happens to wonders in a city when it is razed?

They certainly don't switch to other cities. From the manual:

Razing the City

If you raze the city, it’s gone. For good. All of its buildings, wonders, and citizens are no more.