It means "is not", "are not", "am not" depending on the context. e.g. "I ain't interested" = "I am not interested". "It ain't happening" = "It isn't happening".
It's generally to be avoided. It's not rude, it's just that uneducated people use it a lot. It's especially common in the southern states of America.
Sometimes you'll hear educated people saying it for effect though (i.e. "low brow"), but unless you're pretty confident it's appropriate, it's probably better to not use it.