Expanding (x−r1)(x−r2)(x−r3) puts −(r1+r2+r3) in front of x2, so for a monic cubic the sum of the roots is the x2 coefficient with its sign flipped.
Here a=1 and b=−6:
r1+r2+r3=−ab=−1−6=6
The roots are in fact 1, 2, and 3, and they do add up to 6.