How the species became Did the phenomenon responsible for sand dunes and magnets also help create everything from earwigs to elephants? Just so, says Ian Stewart Features