To take the place of something or someone. The new manager will replace the outgoing one next month.
To put something back in a previous place or position. Please replace the books on the shelf after you finish reading them.
To provide a substitute for something that is broken, old, or no longer useful. We need to replace the old light bulb with a new one.