Build the circuit as shown...
If you are using the solar cell in the sunlight, the LED lights up.
When using the solar cell in artificial light, the LED will not light up or only very slight. More on this later...
Maybe you use a solar cell with a higher nominal voltage and current? Without a suitable current limiting resistor it may damage the LED.
But what exactly happens in a solar cell...?