The digit sum of 231 is 2 + 3 + 1 = 6. Since 6 is divisible by 3, so is 231. In decimal notation, 10 and 100 each leave the same remainder as 1 when divided by 3. That lets us replace each place value by 1 for this test.
The same reasoning works for divisibility by 9. The digits of 252 add to 9, and dividing 252 by 9 gives 28. Try 253 next: its digits add to 10, so 253 cannot be a multiple of 9.
A digit sum loses information. The numbers 123 and 321 have the same sum and different values. Use the shortcut for the divisibility question it can answer.