ADB (Android Device Bridge) is generally used when you just screw up your phone by messing with something that shouldn't have been done :D or rather experimenting!!
But adb can help you a long way when you get in such difficulties!!
So here we go step by step!: