NCAA rules: when it touched the ground in the end zone. Possibly it bounced up in from of the goal line and was in the air in the end zone. Then the ball is still live.
NF rules: as soon as the ball breaks the plain of the goal line the play is dead (I believe)