You will need to read about "transistors, diode, motors" to drive the vibration motor.
The flex sensor will use an analog input.
This guy had some code...