Spain’s Socialist Prime Minister Pedro Sanchez has accepted an invitation from the Cuban president Miguel Diaz-Canel to visit the country, a spokeswoman for the Spanish government said on Tuesday.