Why the US got involved in WW1?

A british ship was sunk by Germany called the Lusitania which killed many Americans.