Everything in Wolfram Language (Mathematica) is a function. Some functions return a value, some do not. The For[...] does not return a value, i.e. the outcome is Null.
Hence your function calculates everything correctly but does not return the result x. You have to put it explicitly at the end:
(For[i = 0; x = 0, i < n, i++, term = (x + (i + 1))^2; x = term]; x)
BTW: You do not need the intermediate variable term. You can write:
(For[i = 0; x = 0, i < n, i++, x = (x + (i + 1))^2]; x)
BTW: Your function creates global variables i, x and term, which is not desirable. You should write:
SquareSum[n_Integer]/;n>0:= Block[{i,x},
For[i = 0; x = 0, i < n, i++, x = (x + (i + 1))^2];
x];
or Module instead of Block.
BTW: You should not name your variables and functions with a first uppercase letter. This might conflict with WL-defined names. You'd better name your function "squareSum".