Stay has two meanings
(1) to stay in the same place or state, especially after others have left that place or changed state, e.g. She stayed silent, She stayed in London (but the others left)
(2) to live in a place for a short time, e.g. She stayed in a hotel.
Remain has three meanings:
(1) to stay in the same place or state, especially after other people have left that place or changed state, e.g. She remained silent, She remained in London (but the others left)
(2) something that still needs to be done, e.g. One question remains, Many tasks remain
(3) to be left when the other parts have gone. e.g. Little remained after the fire, Two minutes remain of your allotted time.
The first meanings of each verb are identical and interchangeable. The others are not.