A rental that can be extended has an Extend button on its page, with the number of days and the price. Press it before the rental ends: the days are added to the end, and the price comes from your balance. A rental that has ended cannot be brought back; rent a new number instead.
Some rentals can be cancelled shortly after the purchase: the page shows a Cancel button with the time it is available until, and the price goes back to your balance. This is possible only while no message has arrived on the number. After that, and after the time shown, the rental is yours to keep until it ends; the price stays spent. The Refund Policy has the details.