i just blew down the dock connector and headphone socket a few times and it started working. Must have been dust.
open