LLM3:Large Language Model-based Task and Motion Planning with Motion Failure Reasoning