Heavy rain and thunderstorms have caused a flash flooding threat to develop for parts of Arizona and New Mexico.