If you stop eating and drinking anything completely then you can die within 3 days.
You can last longer without food than you can without water.
If you drink water while being without food you can last for up to 10 days or longer without dying but you do need food to survive and water only won't keep you alive.