First, take accurate measurements. Then, show the measurements to a salesperson at a home improvement store. Cut off electric/gas power. Lift the cooktop out (with help). Replace with new one.
Remove the old electric cooktop first. Be sure to turn off the power so you can safely disconnect the wiring. Find a new cooktop and install it. Read manufacturer's directions for specific steps for installation.