Socialism and national socialism are different political ideologies. National Socialism has been in existence since the 18th century in the Prussian tradition, while Socialism emerged since the 19th century.
Nationalism was first proposed by Fredrick the great and Fredrick William I; their idea was that the militant spirit should be the model for Civic life, while Karl Max, a German philosopher, asserts the importance of socialism.
National socialism allows private ownership of national resources, while socialism ideology was to change the idea of allowing the wealth ones take control of the economy, socialism is the distribution of national wealth to all classes of the economy.
National socialism makes use of corporatism to bring trade war between workers and entrepreneurs, while socialism prevents class wars by asserting that no social class is against each other.