Heat the olive oil in a large saucepan or Dutch oven over medium heat. Add the onion and red pepper flakes and cook, stirring occasionally, until the onion is soft and tender, about 7 to 10 minutes. Add the tomatoes and 1½ cups water and simmer for about 30 minutes, stirring occasionally. Stir in the basil and season with salt and pepper.