We assume $z \ne 0 \ne w$; it is obvious that in the other circumstance $z = w = 0$ is the only possible solution.
Now, since
$z^3 = w^3 \Leftrightarrow z^3 - w^3 = 0, \tag{1}$
then
$(z - w)(z^2 + zw + w^2) = z^3 - w^3 = 0; \tag{2}$
we see that if
$z^2 + zw + w^2 \ne 0, \tag{3}$
then
$z = w; \tag{4}$
furthermore, if (4) binds then
$z^2 + zw + w^2 = 3z^2 \ne 0; \tag{5}$
thus
$z = w \Leftrightarrow z^2 + zw + w^2 \ne 0; \tag{6}$
certainly $z = w$ is a possible solution to (1); (6) indicates that the any other prospects are to be found via the logically equivalent
$z \ne w \Leftrightarrow z^2 + zw + w^2 = 0; \tag{7}$
we therefore scrutinize
$z^2 + zw + w^2 = 0 \tag{8}$
for solutions of (1) other than $z = w$. Perhaps the most straightforward and clearest way to proceed is to exploit the assumption $w \ne 0$ and divide (8) through by $w^2$:
$(\dfrac{z}{w})^2 + \dfrac{z}{w} + 1 = 0; \tag{9}$
if we now set
$\omega = \dfrac{z}{w}, \tag{10}$
we find
$\omega^2 + \omega + 1 = 0. \tag{11}$
(11) is readily recognized as the equation for the non-real cube roots of unity; indeed we have, taking for the moment $z = \omega$ and $w = 1$ in (2),
$(\omega - 1)(\omega^2 + \omega + 1) = \omega^3 - 1 = 0, \tag{12}$
which shows that if
$\omega^3 = 1, \;\; \omega \ne 1, \tag{13}$
then $\omega$ satisfies (11); it is easily seen from the quadratic formula that the two such $\omega$ are
$\omega = -\dfrac{1}{2} \pm \dfrac{i}{2}\sqrt{3}; \tag{14}$
we recognize that
$\cos \dfrac{2\pi}{3} = \cos -\dfrac{2\pi}{3} = -\dfrac{1}{2},$
$\sin \dfrac{2\pi}{3} = \dfrac{\sqrt{3}}{2}; \tag{15}$
therefore, if $\omega \ne 1$ we have
$\omega = \cos \dfrac{2\pi}{3} \pm i \sin \dfrac{2\pi}{3}$
$= e^{\pm 2\pi i /3} = e^{2\pi i / 3}, e^{4\pi i / 3}; \tag{16}$
now since
$\dfrac{z}{w} = \omega = e^{\pm 2\pi i / 3}, \tag{17}$
it follows that, other than $z = w$, the solutions to (1) are
$z = e^{\pm 2 \pi i /3} w. \tag{18}$
(18) is easily verified:
$z^3 = (e^{\pm 2 \pi i / 3}w)^3 = w^3(e^{\pm 2\pi i / 3})^3$
$= w^3 e^{\pm 2 \pi i} = w^3, \tag{19}$
since $e^{\pm 2 \pi i} = 1$. We thus see that (1) entails precisely three possibilities:
$z = w, z = e^{2\pi i /3} w, z = e^{- 2 \pi i /3} = e^{4 \pi i /3} w; \tag{20}$
it's really all about equations (11)-(12); and of course, there are the nearly "self-evident truths" of the generalization of these results to the case $z^n = w^n$ for $n \in \Bbb Z$.