Also want to know where and how each one is used?
A message box is a box where you display a particular information to the user. An input box is again a box, but this time you ask the user to actually enter some information, which you then take as a value and store it into a variable.
How to use that!