The direct answer is to install more memory. Take your machine's model to a computer retailer and ask what is compatible; they can match the type and speed to your system and fit it for you.
Before spending money, check what is already installed and how much your motherboard and operating system will actually accept. A 32-bit system, for instance, cannot use a full 4 GB. Closing background programs frees up what you have but does not add capacity, so hardware is the only real upgrade.