I recently got and played this game...
We can see that you are new here and people are happy to help, but I hope you are also reading the copy of the rules that came in the box that you just "got".
Also, can you play the tiles in your reserve board at the end of the game?
The short answer is "no".
An expanded explanation is that the game is "over" at the end of one person's turn when the market cannot be refilled. That one person (maybe it was you) will have had a final chance before ending the turn to do one Reserve action. Other players can do nothing except to place tiles which they have obtained by the final distribution that closes the Market.
And here is a quote from the rules (with my highlight)
The remaining building tiles from the building market are given to the players who have the most money of the respective currency in their hand (it does not matter how much the building costs). If two or more players have the same amount of money then the building tile remains on the building market. Building tiles given to players in this way may then be added to their Alhambras in accordance with the building rules.