My proof. We need to show that $a=0$ or $b=0$ for the equation. We have,
$\left( a+b\right) ^{3}=a^{3}+3a^{2}b+3ab^{2}+b^{3}$ (by the binomial theorem)
$=a^{3}+b^{3}$ (by the assumption).
Now, adding $(-(a^{3}+b^{3})$ both sides yields $3a^{2}b+3ab^{2}=0$, i.e., $3ab\left( a+b\right) =0$ (by the distributive law). Since $3ab\left( a+b\right) =0$, $3ab=0$ or $(a+b)=0$, i.e., $a=0$ or $b=0$.
Can you check my proof?
in addition, Let $a$ and $b$ be real numbers. Then $\left( a+b\right) ^{3}=a^{3}+b^{3}$ implies $a=0$ and $b=0$.
So, how can I show this?