If you can enter grub, then why you can't boot ????
Anyway, to reinstall grub:
Enter the grub command line and type
It should return with something like that: (hd0,5)
If it returns with an error then try: find /grub/stage1
Now type:
but change the numbers to match the ones returned by the find command.
If there is no error, type:
(that's the string returned by find but without the ",5")
If there are no errors, grub is reinstalled.