Microscopic description of dielectric thermal transport with memory and nonlocal effects