How can you tell if your gerbil is unhappy?

I'm not an expert or anything, but I used to have two gerbils and when one of them died, the other didn't do or eat much, and tended to sit in the same place for ages without moving and refused to come out of the cage. I think he was sad and unhappy :(