The 2005 film cost 100 million to make and made 330 million.
The sequel to that film cost 130 million and made 289 million.
Both grosses are world-wide totals. So, they did turn a profit - but after marketing, etc. "not much" when compared against expectations of Fox.