People, gold is not valuable because of its electrical uses any more than a $100 bill is valuable because you can burn it to warm yourself if you're cold.
The reason gold is valuable is because it was a reliable medium of exchange. It is rare and it doesn't rust, so if you give someone a cow for a piece of gold, you know with practicaly certainty that the piece of gold won't rust or rot, and on the other hand, that there's not going to be a huge supply of it all of a sudden that would make people demand more gold for whatever you want to buy. This is the same reason paper money is valuable.
The reason gold is valuable is because it was a reliable medium of exchange. It is rare and it doesn't rust, so if you give someone a cow for a piece of gold, you know with practicaly certainty that the piece of gold won't rust or rot, and on the other hand, that there's not going to be a huge supply of it all of a sudden that would make people demand more gold for whatever you want to buy. This is the same reason paper money is valuable.