The preceding vowel nasalizes only if the intervening consonant is voiced, or in some words.
2.
It is always in EP, but in most of Brazil, it represents a nasalized semivowel, which nasalizes the preceding vowel as well : " manh�zinha " ( " early morning " ).
3.
It is pronounced that way whenever it is followed by an n ( barring some special circumstances ), a consonant that, in French, usually nasalizes the preceding vowel instead of having a sound by itself.