In Spanish, what is the difference between 'esa' (that, feminine), 'ese' (that, masculine), and eso?

They all mean "that", but how does the way "eso" is used, different from the way "esa" and "ese" are used?
3 answers 3