Lock Location and Rotation?

can you explain this in more detail with an example?