You need cardio to build up endurance, so get outside or get on the treadmill.
I do agree that you should work some sprints in, too - basketball reffing is a lot of running 30 meters, stopping for a few seconds, then running 30 meters the other direction.