Orchid replanting

How to replant orchids and keep them alive after they have seemingly died?