According to Second Law of Thermodynamics, for a spontaneous process, total change in entropy (system + surrounding) should be positive. 
Related Theory (Ref. to Fig. 28.1)
For the latter two cases, the temperature at which the spontaneity changes will be determined by the relative magnitudes of △S and ΔH.