Secretary of State Rex Tillerson says the US is prepared to talk to North Korea when Pyongyang agrees to change course on its nuclear and missile programs.