Any tips?

I am always confused on when to use geen or niet when in a sentence such as "I am not", "He does not drink in the milk".

I just can't seem to get a hang of it or see a pattern where niet or geen is used in, is it just a 'you just know' thing or is there a specific reasoning for using either one.

Any advice?