Tomato Sauce and Pasta Sauce are the same thing except the addition of other ingredients that are added to pasta sauce that aren't added to tomato sauce.
So yes the tomato sauce and past sauce themselves are the same but the pasta sauce has additional ingredients.
Pasta sauce is made with tomatoes and tomato sauce but tomato sauce is basically just tomatoes turned into sauce.
But for pasta sauce it's basically tomato sauce but with the addition of onions, garlic, herbs etc.
The addition of those other ingredients such as onions, garlic and herbs give the pasta sauce it's flavor that adds flavor to the pasta.
You could use tomato sauce on your pasta but it won't be as tasty as pasta sauce unless you add those other ingredients to it.