Quantum mechanics — the most successful and important theory in modern physics — is like that. It works wonderfully, explaining things from lasers and chemistry to the Higgs boson and the stability of matter. But physicists don’t know why. Or at least, if some of us think we know why, most others don’t agree.
Nice article on the history of quantum mechanics for its 100 year anniversary...