My car die while driving and it wont start

its a really loud clacking sound so, would the distributor have anything to do with that.