Need Help: Car Starts cold and then konks out and restart takes forever.....

My orange would run, then get warm then wouldn't start for hours, changed it out with a stock box have not had any issues for years.