You have to charge it up first by plugging your laptop into a mains socket using the a/c adapter. The battery will charge up while you are using the laptop on mains power.
If the battery still doesn't keep your laptop running after it's been on charge for a day, return the laptop to where you bought it.