Turn off and disconnect the power source to the pump before attempting to do anything with it to avoid electrical shock.
Remove the old check valve from the intake if you are replacing it.
Check the manual of the pump if you still have it, or the specifications for your make and model online. These sources will specify the inlet connection size.
Measure the inlet pipe or the outlet of the old check valve across the widest point to get the diameter if you cannot locate the specification.
Write the measurement down and keep it with you so you have a reference when shopping for the new check valve.