It's a very interesting history, but we only learn from the perspective of the US and Cuban exiles (often the wealthy Cubans who owned most assets). In functioning Socialist and Communist economic systems the people own everything, and the government distributes resources evenly. When government corruption occurs, distribution tends to favor a select few. Sort of like the Western governments bailing out the banks, China's allocation of wealth to top officials, and Russia's oligarchy.
The US (when I state the US, I'm referring to the super wealthy who own natural resources and the government who support American businesses) occupied Cuba's sugar plantations pre 1950s and built/operated casinos. Cuba was essentially, a playground for wealthy Americans and Europeans until Cubans got fed up with corrupt American-Cuban leadership. If you're interested, learning about the Cuban revolution is fascinating, but it's difficult to find info from the Cuban perspective and the US' history is slanted.
When the USSR fell, the Special Period in Cuba began. It lost its trading partner and had to control every aspect of the economy to disperse food and resources so people wouldn't starve. The US and a few other nations' sanctions made this very difficult, but Cubans learned how to farm, and created urban farms throughout Havana. All of the city's food comes from the city. When Obama opened up travel to Cuba, the Cuban economy began to gain revenue from tourism and dedicated (in my opinion) too much money to tourism, but they also used some money to buy essential resources. Trump tightened sanctions to win votes in Florida and Biden for whatever reason tightened sanctions again (they claimed Cuba wasn't doing enough to combat the war on terrorism...).
The US controls the whole world's internet. Everything on the internet goes through US servers. Cuban and many countries' (like China) leadership tries to keep US propaganda out, and the only way to do this is by controlling the internet. Hence, we're told these governments monitor internet usage to control the people, but it's more complicated than we know.
Cubans struggle under the sanctions, and the UN asked to remove sanctions during the pandemic. All but two countries voted to remove them - the US and Israel. Cubans struggle to obtain needed supplies and the pandemic exacerbates the issue, but if you ask Cubans what they want, well over the majority state they do not want US intervention. They would like the freedom to travel and trade. It's not Cuba stopping them from having these things. Trump denied Americans from sending money to family in Cuba, and further escalated the country's issues.
I have not made any of this up. I don't gain anything from it, but Latin American history is fascinating and I can't help it - I enjoy discussing it. If you examine the Cold War and the wars we fought to preserve capitalism through an unbiased lens (which is difficult), the world we live in today, starts to make a lot of sense. When countries nationalize natural resource it threatens capitalism, and the governments have been overthrown nearly every time this has happened (Hussein in Iraq for example).
Nationalizing resources returns the wealth gained from the production to the country instead of private-foreign owners. If government corruption occurs (often we're told this, but in most cases it's untrue), the leaders gain the profits from nationalizing. In almost every case in Latin America, the US funds right-wing juntas to overthrow governments and implements a capitalist-friendly politician. The energy industry is an example of nationalizing resources in the US, but it was deregulated in the 90s. In CA, this has caused nothing but hell because we've endured market manipulation since Enron nearly drove the state bankrupt. That's a whole other story though.
Anyway, in short, we're intentionally shaped to fear nationalizing anything because private owners and stakeholders wouldn't make as much money and they have a lot of power. Ideally, the private sector operates but doesn't own natural resources, and our government regulates them so that we don't pay an arm and a leg. Public ownership of essential services occurred from the Great Depression until the 1970s, and this isn't the only reason why Americans had a better quality of life during that period, but it contributed to it.