Alzrius
The EN World kitten
Magic and Melee can be more balanced....but you have to use ways that WOTC has started to shy away from.
For example, magic can be more powerful to melee, but it could be damaging to the body, or extremely fatiguing. Or it could require long casting times. It could always require expensive components. It could draw the attention of otherwordly beings, etc. Just because magic is powerful doesn't mean it has to be free.
But as I said Dnd has tended to shy away from these types of costs. They want a wizard that can cast their magic more freely. Which is fine, but then the magic has to be weaker to maintain balance.
This. Back in First Edition, magic took round segments to cast (during which time you could be targeted), if you took damage (or if the environment wasn't conducive to concentrating) you lost the spell without a check, and wizards had a hard cap on the number of spells they could learn at each spell level. When you take away the weaknesses involved with using magic, of course it's going to make the characters using it more powerful. This then quickly degenerates into an arms race, as people try to power-up the non-spellcasting classes to compensate.