seems nobody has a clue well looks like the scrap yard for this i think
Really, you are expecting people to diagnose a fault from your description over the internet. Take it to a indie/specialist and get them to look at it before you scrap it would seem a more sensible choice.
Whilst the CPS may be fine the ring it uses to respond to may be damaged, corroded or broken. In addition there e could be an electrical fault - alternator/battery.
In the good old days all a diesel needed to run was compression and fuel and it would simply keep going. More modern diesels rely on slightly more, very high pressure fuel pumps running at 10,000psi, injectors that are far finer and higher tolerances for a start.
It could be a compression leak or all sorts.
By all means scrap your car but find out what is wrong and make an educated decision based on the facts.