Did you enter the DVD Key that came with it when you installed it? If it came with your machine, there should be a COA sticker on it with the key. If there is no COA sticker, you may have been given a pirated copy. We cannot help you with that; you'll need to buy a legal license.
It should activate online automatically. Otherwise, you'll need to call Microsoft