Teacher, 52, on trial for allegedly having sexual relations with girl, 14