If Dead Space 2 won't activate and keeps saying "Connection failed, please check your internet connection," there are two likely causes.
Either there's an issue with the game's connectivity, or your firewall is blocking the game from reaching the internet. You can adjust your firewall settings to allow the game through. If the problem is with the game itself, your best bet is to contact the store where you bought it for help.