Just start by putting the pods in their place.
Then, turn the loose cables until the controls need to be put in its socket.
Put the controls in its socket. Keep the controls on top of the other loose cable. From here, rotate the remaining cables counter-clockwise until its all neatly packed.
Here you go! Now you have re-packed your earpods successfully!