A phase-field system with two temperatures and memory