Using electricity is an example of doing work. Work is prohibited on Shabbat and many other Jewish holidays including Rosh Hashana, Yom Kippur, Sukkot (not all days), Shemini Hatzeret, Simchat Torah, Passover (not all days) Shavuot and Tisha B’av. Work should be avoided on Purim as well.