If someone receives a liver transplant, and the liver functions but the recipient soon dies, can the organ be transplanted again in someone else?

Depends. This would depend on the reason for the death of the recipient. Could potentially be done but a double transplant of an organ would be pretty unusual.