What factors generally determine whether a reaction happens or not?

Enthalpy and entropy.