Do I lose resources when buying 4th plant in Power Grid?
You may keep the resources, as long as the new plant can store them. According to the rulebook:


  When a player buys a fourth plant, he must discard one of his other power plants. The player may move resources from the discarded power plant to his remaining three power plants, if they match the resources used by one or more of the retained power plants.