What exactly happens when I give a car with high
mileage a new engine
You can drive it a lot longer. As far as price, it will sell quicker when you decide to sell, but not necessarily you will recoup your money.
All the other parts are old so you will have other repairs to do.