If the bike is damaged in any way like if it’s dented, rusty, or cracked, you should buy a new bike. If the problem lies elsewhere, you can simply get that part replaced.