In what ways can you get a yeast infection?

wh
I know certain soaps can cause it. Can bath and body works soaps cause it? Can a yeast infection go away on its own? And what other ways can you get a yeast infection?