This research evaluates the efficacy of a basketball-based teaching and training system supported by 5G technology in a wireless network environment. Initially are information about the Chinese basketball students is first gathered and then divided into a Control Group (CG) and an Experimental Group (EG). The control group uses the standard method of collegiate basketball instruction, while the experimental group learns the game under the background of 5G technology. For transmitting the basketball teaching data in the 5G network, we proposed a novel routing protocol named Probability-based Coupling Zone Routing Protocol (PbCZRP). An optimization technique called the Shark optimization approach is used to enhance the performance of the routing protocol. Finally, a comparison of the two groups reveals that the experimental group's basketball players fared better than the control group. The basketball training plan powered by 5G will supply students with adaptive learning services that take into account their individual needs and strengths.