By the sound of it, your 'phone is seriously devoid of TLC! Therefore, I wouldn't guarantee Apple would offer you a replacement under Warranty. However, if they don't, they will most likely give you the opportunity to buy a replacement.
Such replacements are usually refurbished items which are essentially as good as new (if not better).