Which sentence is more formal?

 - Mecca's a city in Saudi Arabia, and it's an important religious center for Muslims around the world.
 - Mecca, a city in Saudi Arabia, is a religious center for Muslims around the world.
The first sentence is less formal. You can tell because it uses contractions (Mecca's, it's).
The second sentence does not use contractions, so it is more formal.