If it is battery-powered, try to replace the new battery and make sure the positive and negative poles of the battery are installed correctly.
If it is a rechargeable lamp, try to charge it for 2-3 hours and test it again to check whether the charging port is loose.
More