If you purchased your phone from someone else it maybe out of the Manufacturer's warranty. The best thing you can try is to contact Samsung's customer service about the issue for a solution to the problem.
I bought it from Ebay doesn't the manufacturer 's warranty last a year?
Yes, did you buy it new or used however? If used then it's possible that it maybe over the one year manufacturer warranty, if it's new then you may have a chance in having it repaired.