I would say college football came first because I live in New Hampshire and go to a lot of UNH basketball games and they have posters that say they had a football team in the late 1890's. I'm pretty sure there wasn't a NFL in the 1890's.
Football was invented in the early 1800's. Basketball was invented in 1891.
football has a goal basketball has a net football you use your feet basketball you use your hands football you use a football basketball you use a basketball football you use a pitch basketball you use a court there is loads
Football came first as rugby came from a cheater who played football in a pe lesson and picked up the ball, in a English town called rugby.
Basketball first came about in early December 1981.