Heat the olive oil in a large pan. Add the onions to the pan and saute until it gets translucent. Add the frozen meatballs and garlic to the pan, and saute for a few minutes.
Then add the tomato paste, passata, water, spices, sugar, vinegar, and basil to the pan and cook them together. When the sauce is boiling, add the spaghetti to the pan. Close the lid and cook for about 10-12 minutes according to package instructions, stirring occasionally.
When the pasta is cooked thoroughly, turn off the heat.