What S The Difference Between A D And An Eb Even Though They Sound The Same What

What’s the difference between a D# and an Eb? Even though they sound the same, what else is different about them?