Although both wars were fought to preserve the independence of free countries, the conflicts of WWI and the Spanish-American War led to very different consequences. In contrast to the Spanish-American War, WWI led to wide political changes in Europe, the development of new war weapons, and a change in the American social landscape. WWI was also a very expensive war that led to many more casualties than the Spanish-American war.
It has been said that WWI caused the deaths of 9 million combatants and 5 million civilians. It also cost $300 billion in direct and indirect costs, more than any previous war in history. WWI also led to the fall of four autocracies: Russia in 1917, Turkey in 1922, Austria-Hungary in 1918, and Germany also in 1918. Russia sustained great losses during WWI, and it never fully recovered from it. The losses caused Czar Nicholas II to lose his control over the Russian government. Read how the losses Russia sustained during WWI led to the February and Bolshevik Revolutions of 1917.
WWI also led to the fall of the Ottoman Empire (Turkey) in 1922 and affected political changes in the Middle East that has reverberated to modern times. Although Turkey/The Ottoman Empire chose to remain neutral in the beginning, it eventually decided to enter the war on the side of the Central Powers. The Empire sustained insurmountable losses because of the war, and it never recovered its dominance again. After WWI, British forces dominated regions in the Middle East that later became modern-day Iraq, Syria, Lebanon, Jordan, and Israel.
Also, read about the fall of Germany after WWI and how WWI led to the fall of the Habsburg-ruled Austria-Hungarian Empire, resulting in the forming of new nations such as Czechoslovakia and Yugoslavia.
In terms of new technological advances in war weapons, read about new war weapons that led to Allied victory in WWI and ten of the deadliest weapons during the war.
Last, but not least, WWI also ushered in a new technological era and social adjustment in the United States. The exodus of people into cities led to more people participating in the excesses of the Roaring Twenties. Indeed, unlike the Spanish-American war, WWI led to wide-ranging political and social changes that continue to affect our modern age.