My first rule of flying is to always take and use ear plugs. It’s not a baby’s fault they cry it’s typically because they can’t unplug their ears and it is uncomfortable for them.
I was doing a lot of business travel back in the 90s. One time on a return flight from NYC, I sat next to a pilot dead heading. We chatted for a few moments, then he put in his mini earpods (not that common back then), relaxed and zoned out the entire flight back.
The next day, I immediately went to Radio shack and got my own pair. Used them for years before just going full ear plugs. When Bose headphones became all the rage, I tried them but they don't really allow you to turn your head and sleep.
Now, I use these on every flight, no matter how short: http://www.ohropax.de/en/products/classic.html
Some people complain that they leave a waxy residue, but it's easy to wash out. On the plus side, it blocks all noise by around 90%. I've sat next to babies screaming the whole flight. No biggie, if you've ever had children, you know the score. I just smile and zone.