Coherent manipulation of thermal transport by tunable electron-photon and electron-phonon interaction