When I type 'ping raspberrypi.mshome.net' it returns an ip address but each ping times out and I can't connect through putty.
I was able to do this before, I've setup the ethernet connection as follows:
As I understand from your question (which is vague and incomplete) you are trying to use a Windows machine to provide ICS to the Pi. This would be OK, but you can't then use the same connection to connect to the Pi.
You can have one or the other. (This is not strictly true, advanced configuration on the ICS machine may be possible, but this is NOT a Pi question.)