sir you may take the vehicle to irshad ahmed at jamil autos 0300 223 7538. request him to perform compression test dry & wet (both), at all 4 cylinders before any other diagnostics.
if the compression values are below 160 each cylinder wet & dry combined. The engine need overhaul. if values get better at wet test most likely the valves are leaking and need work.
as there are several members who do not recommend swaps from yards instead they suggest overhauling engine be it a diesel or petrol. scrapyard engines are very high value bet with 70% poor and 30% reasonable performance upon swap.