earphones give you better portability, you can simply put them in a pocket if you arent' listening to music while the headphones are bulkier.
that notwithstanding, headphones sound better.
earphones (some studies say) are more harmful for ears as compared to headphones.