I get absolutely nothing with either tonea.h or tone.h
The regular tone() function doesn't require a '.h' library.
Or again, this should make a tone:
analogWrite(2, 127); // 50% PWM @ the default PWM frequency
delay(10000); // Hold tone for 10 seconds
Maybe your speaker or transistor is blown? Try disconnecting the base resistor from the Arduino and momentarily connect it to Vcc. That should turn-on the transistor and make a "click" from the speaker. If it's a bare speaker and you can see the cone, you'll probably see the speaker cone move.
The Blink Example (modified for pin 2 or wherever your transistor is connected, or connect the transistor to pin13) will also produce a click when the LED goes on or off (with or without an LED actually connected). If you see the LED blinking but you get no sound, you know you've got a hardware problem.
Or if you have some (known good) powered computer speakers, connect the Arduino to those speakers to see if you're getting anything out of the Arduino. (Turn the speaker-volume down before you start because the Arduino 5V output is a "hot" signal.)
Maybe you've got a wrong or broken connection? Maybe the transistor is wired wrong? Maybe your Arduino is bad? Maybe you're not connected to pin 2? Maybe the resistor is wrong (megohms, or something)?
P.S.
That base transistor should probably be somewhere around 200 Ohms. (125 Ohms would be the minimum, for the maximum allowed current from the Arduino.) At around 1K, you should get sound and it might work fine, but the transistor might not turn fully-on and it might overheat.