Messages have revealed that a teacher accused of having an affair with a 13-year-old student had sex with him in…