It looks like this right?
The laptop works with just the battery and not plugged into the wall right? If the answer is yes then take out the battery and see if it works just plugged into an outlet. If it doesn't then it's most likely the adapter which is the rectangular thing.