Give up the ghost

To stop working, to die.

My old car finally gave up the ghost so I must buy a new one.