The electrochemical cell stops working after some time because:
Due to the potential difference between electrode,electrons flow from one electrode to another.After some time there is no potential difference between electrodes i.e. electrode potential becomes equal.