Although it's a perfectly valid word, ain't is often regarded as nonstandard. It gets used as an insult to the low-class or ignorant.