Look at your code:
DataSet ds = new DataSet();
DataRow[] result = ds.Tables[0].Select("Team = '" + listBox1.SelectedItem + "'");
ds
is a new DataSet: you have added no data to it at all. As a result, it has no tables, and you cannot access them.
No tables, nothing to filter, error message because the index is out of range.
Find the DataSet you want in your code, or load the DataSet with data - your choice!