We fulfill the mitzvah of Hanukkah by lighting a hanukkiyah (the menorah specifically for Hanukkah) with candles. Some hanukkiyot (plural of hanukkiyah) use actual oil to even more closely replicate the miracle in the Hanukkah story. We use electricity for illumination during the year. We mark sacred and special occasions, such as Shabbat and holidays, by lighting candles. Of course, there are certain places that do not permit open flames, including hospitals and nursing homes. In these cases, some will opt to use an electric menorah.
The Eternal One spoke to Moses, saying: "Speak to the Israelites and say to them: If any men or women explicitly utter a nazirite’s vow, to set themselves apart for the Eternal,they shall abstain from wine and any other intoxicant." - Numbers 6:1-2