"OK Google" is a phrase you can say to turn on and use Google Assistant, but you'll need to enable Voice Match first.
You can turn on the flashlight on most Androids by pulling down the Quick Settings menu from the top of the screen and tapping the flashlight button.