What's wrong with an electrical outlet that will power a lamp but not a space heater?
The outlet contacts may be too dirty to carry a heavy load.  Or they may be loose.  Or the wires to the outlet may be loose either at the outlet or the in the breaker/fuse panel.  I would recommend not using this outlet for anything until the point of cause is determined and corrected.