she had been defeated once by rome and then driven out of sicily and sardinia , but came back to more than recoup her losses by new dominions in spain , and raised up hannibal to give the romans sixteen years of terror .