Summary:
Faith can be spent in several ways. It can be used to purchase religious units or buildings or it will get expended to spawn a Great Prophet, or, once you enter the Industrial Era, another Great Person.
The Faith you've accumulated will automatically be spent on spawning a Great Prophet once you've reached a certain threshold (to see this hover your mouse over the icon in the Status Bar). Once you enter the Industrial Era, you can spend Faith on other Great People as well, depending on which Social Policy branches you've unlocked.
You can also choose to spend your accumulated Faith on Units or buildings. This can be done in the Purchase menu of the City Screen. Missionaries and Inquisitors are available in every city that follows a Religion while the respective buildings are only available if the Majority Religion contains a Belief that unlocks the purchase of a Religious Building.