I use a set of Beyerdynamic DT-770 headphones. They are big, have good sound and most importantly on topic, they are quite good at keeping sounds out of my ear.
You should also communicate. Talk to your boss and/or HR about how it distracts you and disrupts your work. Suggest solutions; Headphones paid by your work, sound-proofing office walls, move to another location or move other people to another location.
Yea I was gonna say get some bomb headphones and blast the music of your choice when you're working. That's if you're into music while coding, of course.
If you get distracted by music, try getting a playlist of instrumental music, or music with lyrics in a different language. I can code with lyrics no problem, but when I'm writing an article or something I go music w/o lyrics... or music in Spanish!