Here's why:
* Iron is magnetic: Iron filings are attracted to a magnet.
* Sulfur is not magnetic: Sulfur will not be affected by a magnet.
You can simply hold a magnet over the mixture, and the iron filings will stick to the magnet, leaving the sulfur behind.