A small motor that has an uneven or unbalanced weight on it's output shaft is commonly found inside mobile phones that offer vibration mode. When this motor rotates, the rotating uneven weight on the output shaft causes the mobile phone to vibrate. Similar mechanisms are also found in gaming devices such as Play station, Dual Shock, XBOX and Wii controllers.
Source: thehindu.com