"Which" is a relative pronoun that refers to "city." You cannot use "it, this, or tgst" in this same sentence, because then it would be a comma sllice: Two sentences separated by a comma, which is incorrect.
You could say the same idea in two sentences.
"Language is a city. To the building of it every human being brought a stone."