Could be broken, you can fix it by replacing the port, although it may cost as much as a new phone to do that. Those ports tend to loosen up over time.
thanx alot. funny thing is it works when i switch my phone off when its plugged in then switch it back on again.....
That could just be moving the connection a bit and making contact. Does it connect to a computer with no issues? Is it only charging? What if you move the cable around a bit, does the charge light come on? Have you tried a different charger?