motor dies after it gets to temp

dies like lack of fuel that's why at first I thought it was a vapor lock.