North Korea has restored communication lines with the South, months after it cut a cross-border hotline.