Brachylog, 78 bytes
⟦₁s.+?!∧ Explanation
⟦₁s.+?!∧ ⟦₁ Inclusive range from 1 to the input number s A consecutive sublist (trying longest sublists first) . is the output + Its sum ? is the input ! Don't try any further possibilities ∧ Break unification with the output