Firstly test if you don’t have a network issue
If its ok, try to wipe out cache
yum clean all
The problem is still here: install fastestmirror plugin
yum install yum-plugin-fastestmirror -y
If installed try to disable
vi /etc/yum/pluginconf.d/fastestmirror.conf
from
enabled=1
to
enabled=0
Wipe out cache:
yum clean all