1. As a surname: It's pronounced "GIN-er". This is the most common pronunciation, particularly in the United States.
2. As a word meaning "to give generously": This pronunciation is more archaic and less common. It's pronounced "GIN-jər".
If you're unsure, it's best to ask the person how they pronounce their name or check a dictionary if you're referring to the word.