Technically nationalizing gas and oil is very straightforward it is making an industry (here gas and oil) that is controlled by the private sector (international actors) into something that is owned...
The communist beliefs that the Bolsheviks followed say that banks, industries and the like should belong to all the people and nationalizing them mad ethat happen.