The US and UK OTL both used their influence over food supplies and North Atlantic convoys (U-boats don't know which ships are aiming for Spain!) as the stick, and high prices for Spanish exports (especially rare ores, I think tungsten?) as the carrot to keep Spain neutral.