Engine on 2002 Ford Explorer

How do I know if I need a new engine and if the machanic place is telling me the truth

For a big repair like this, the best step to take is to get a second opinion. If you don't feel secure in what you're being told, check it against another expert's diagnosis.