Take it one step at a time!!! Hook-up your buzzer and turn it on & off with a simple program similar to the Blink Example.
Then, hook-up your vibration sensor and write another simple program to can read it and watch the readings/results with the [u]serial monitor[/u].
There are two different kinds of "noise makers". A piezo "transducer" is a speaker. You send it a signal and it converts the signal to sound and it can produce different frequencies/pitches (or more than one sound at once, like a regular speaker). You can directly drive a piezo transducer with the arduino using the tone() function.
A "buzzer" or "beeper" has a built-in sound generating circuit (or mechanism). You apply power and it makes sound. A car horn works the same way... You apply power and it makes noise. And, you can't use a car horn to play music from your car stereo.) Most buzzers/beepers can't be directly driven from the Arduino and they require a driver circuit.
Be careful if you buy a "cheap" beeper/transducer on eBay because they are often mis-described and you don't know what you're getting.
There are also different kinds of vibrations sensors, some digital and some analog, and some may require some additional circuitry. It depends on what kind of vibrations you're trying to sense.
For your program logic, you'll need to understand basic [u]and & or logic[/u] because you are combining two conditions... time and vibration. And, you'll need to understand conditional execution ([u]if-statements[/u], etc.).
You'll also need to know how to make a timer. You'll probably need to use the method form The Blink Without Delay Example, because a simple delay() pauses your program and you can't read your vibrations sensor or do anything else during the delay() period.
...I'm thinking a [u]while() loop[/u]. The basic logic would be, while time has not expired, you sit in the loop reading the sensor and resetting your timer whenever there is a vibration. If time expires without a vibration, you exit the loop and start making sound.
Then, you'll have to decide what happens next... Do you just keep buzzing forever? do you want to keep checking for a vibration and re-start the main loop if you detect a vibration?