Make sure both objects have a box colider if its a 3D game (if its a 2D game use a 2D Box colider and make sure both objects are on the same Z Position) double check if the tag is actually on the player and is actually called "Player" as tags need to be exact. btw if the game is 2D you would use OnTriggerEnter2D.
Let me know if this helps