I'm not sure if your question is 'What is an OB' or 'How do I enter my logic in an OB'. So I'll take the easy one first.
OBs are programmed just like any other block using any of the available programming languages. Just enter your code and go. As L D said, you will need to insert the OB into your program block structure in order to use it.
Now for what is an OB. All of the OBs are called by the processor. You don't need to do anything specific to get an OB to run. The processor will trigger this. In fact, if the processor determines it needs to run an OB and the OB isn't prpesent in the code the processor will fault. So in that way the OBs are not like functions or function blocks. OBs do not need to be called. If you use the Step7 help and search on 'OB' you shuld get a list of the available OBs. You will notice that the OBs have names like 'Cold Restart' and 'I/O Error' and things like that. The specific OB and the code it contains is run automatically when the processors determines it's needed.
Keith