Massachusetts has five of the country’s 100 largest companies by revenue, but it’s not all good news: three of them, and six of the top 10 in the state, fell in the new Fortune 500 rankings.