Consider it case-by-case.
Case 1: 5 balls go in 1 box, and none go in the other.
There is \({5 \choose 5} = 1 \) way to do this
Case 2: 4 balls go in 1 box, and 1 goes in the other.
There are \({5 \choose 1} = 5\) ways to choose the balls to go in 1 box, leaving the other 4 for the other box.
Case 3: 3 balls go in 1 box, and 2 go in the other.
There are \({5 \choose 3} = 10\) ways to choose the balls to go in 1 box, leaving the other 2 for the other box.
So, there are \(1 + 5 + 10 = \color{brown}\boxed{16}\) ways.