If you start your input with =, as in "= x = 5", then the letters following the first = are sent to Wolfram|Alpha and the output from Alpha is displayed. The assignment "x=5" is not computed in the kernel nor stored in memory.
So instead, write the following:
x = 5
x * x