There are a few possible reasons why your SUM function might not be working in Google Sheets. These include:
You have not selected the correct range of cells to sum up.
There may be hidden cells in your selection that are preventing the SUM function from working properly.
There may be empty cells in your selection that are preventing the SUM function from working properly.
You may have accidentally included a cell that contains text instead of a number.