In cricket and Rugby generally the game is dead when either a touch down or wicket is claimed for, but football is different in that play continues and can quickly move upfield whilst other incidents(fouls,goals,penalties etc.) may occur very soon after.
For the goal kick, if the ball has been deemed not to have crossed the line for a goal then why should play restart with a goal kick.
Free kick to who, and where should the kick be taken from, and why ?