What are the pros and cons of mutual funds and index funds?

I remember when I first learned about mutual funds I thought, “Whoa, this is cool but also confusing! Expense ratio what?” Once I fully understood mutual funds and especially index funds, I felt like I had a super power: the knowledge that this was the best way for me to build wealth in general and to save for retirement specifically.