From your comment you only have Windows 10 installed on your computer at this time.
It's my understanding that the grub configuration files reside on a Linux install.
Your question said you previously had Ubuntu installed on your computer. You can reinstall Ubuntu on your computer (over your previous install, which you are suggesting isn't working).
When you install Ubuntu, the install process automatically installs a working Grub boot manager. During this install (of Grub) it will automatically detect all installed versions of Linux and Windows and add them to your boot menu.
After you complete the install you'll have a menu option of booting either to Windows or Linux.
By the way, since you said you previously had Ubuntu installed, when you perform your new Ubuntu install if you choose the option not to reformat your install partition, it will preserve the personal data you had from your previous Linux install.
After your new install of Ubuntu you can configure grub to default to booting to your preferred OS (Windows or Linux). This can be done via the configuration files that resides on your Linux installed partition.
You can do this by editing /etc/default/grub
... then running sudo update-grub
.
boot-repair
– Mudit Kapil Jan 21 '16 at 18:33