This question already has an answer here:
Prove that if R is a finite ring with an identity, then every nonzero element R is either a zero divisor or a unit. Deduce that every finite integral is a field.
Hint: Let x be a nonzero element of R that is not a zero divisor. Show that $x^n$ for some $n \in N$, and deduce from this that x must be a unit.