In the United States and Canada, there are outlets and junction boxes that have line voltages of 120 volts. A transformer is needed to lower the line voltage from 120 to 12 or 24 volts to avoid burning out the bulb.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.