Could they produce fertile descendents? If they could, then they were the same species. If they could only produce "mules," i.e. sterile descendents, then they were different, though very closely related, species.
Nitpick - but that is not necessarily true. Ring species are notable examples.