Infinitely many solutions for a two points boundary value problem