What are the specifications on your laptop? Everymac has some information but they span between the first generation and second generation. http://everymac.com/ultimate-mac-lookup/?search_keywords=a1304
Has the phone been damaged in any way (i.e. water or physical damage)? If not, try hard resetting the phone (hold the power and home button for 10+ seconds while connected to power). If that doesn't work, you may need to replace either the charge port or battery.