Breadboard layout with speaker
The problem is that the breadboard doesn't work like you think it does.

Inside the breadboard are strips of metal.  In that breadboard they run vertically linking groups of 5 holes together:

O   O   O   O   O   O
|   |   |   |   |   |
O   O   O   O   O   O
|   |   |   |   |   |
O   O   O   O   O   O
|   |   |   |   |   |
O   O   O   O   O   O
|   |   |   |   |   |
O   O   O   O   O   O


Your wires are in different metal strips to the legs of your resistor, so they are not connected to anything.

Move the wires into the same columns as the resistor legs and it will work.

You can see on the Fritzing drawing that when you place a component on a breadboard the holes above and below it are highlighted in green.  These are the holes that are connected internally by the metal strips.